I have large program which Opens 50 files at once and attempts to input the data. The data files vary in length/quantity of data they hold. Seems I invariable run into the end of one of these files more often that not and I was wondering which of the following algorythms works the most reliably:
For x = 1 to 50
while NOT EOF (x)
Input #x, A,B,C
or
For x = 1 to 50
While EOF(x) = 0
Input #x, A,B,C
or
For x = 1 to 50
While EOF(x)<>-1
It's not really practical for me to put a dummy value at the end of each file.