End of file how to input numbers

how do we enter the numbers in the file and check the end of file

@mansikanoi17 hey mansi use the same function used by bhaiya and do one thing save a text file of input and run your program after compilation
A.exe < input.txt

what does the A.exe<input.txt means