Navigation Banner
 
 HYPHY Reference:Constant:END_OF_FILE

END_OF_FILE Constant
  Is set to 0 or 1 by FSCANF to indicate whether the last read reached the end of file.
Syntax  if (END_OF_FILE){ <...>}else {<...>}
Notes Most useful in a loop, when data is read from the same file to check when to terminate.
Examples
fileName = "list";
while (!END_OF_FILE)
{
    fscanf (fileName,"String", str);
    fprintf (stdout,"\n",str);
}

Simply Reads the file string by string and echoes it to the console.

 Last modified: 8/20/2002

 
Sergei L. Kosakovsky Pond and Spencer V. Muse, 1997-2002