Check if 2 input values exists in a file

I have a file number.txt .I need to get 2 inputs from the terminal like a=100 and b=200 .If a and b are there in the file,then check if a < b,print "less" .If a is not there in the file, print "a is missing" or if b is not there in the file, print "b is missing" .

number.txt:

100 200 300

Hello

Shall a be compared to the first value anyway or only if b is present as well?
Any attempts from your side yet?

Cheers

Is this a homework assignment? (Note that homework assignments must be posted in the Homework and Coursework forum and must include a completely filled out homework template.)

Since there are no = characters in your sample input and there is no indication of how the value assigned to a is to be determined nor how the value of b is to be determined, and since you haven't even shown us what output you believe should be produced from your sample input there isn't much we can do without making lots of unsupported guesses.