INPUT #1, NUM
reads from file #1 into the variable NUM
Try running the program now, if you want. If the data file is correct and in the same directory as the program, the program prints out the three numbers contained in the file:
10 21 33
If you get a File not Found message, then the name of the file does not agree with the name you have in the program, or QBasic is using a default directory other than the one that contains the file. Upper and lower case do not matter in the file name. To check that the default directory of QBasic is the one that contains the file, save your program (ALT+F+S) and check in the file dialog that the default directory is correct.
Another way to check is to quit QBasic (save your program first) and then use a DIR command in the DOS window to see if both your program and the data file are in the directory. If they are, restart QBasic and check the file name in the program.
If there are more than three integers in the file, will this program read and echo them all?