fgets
Read the next line from a file which has already been opened.
(line)=fgets(fi)
Inputs
fi The object referencing an open file returned by fopen .
Outputs
line The next line in the file (without the end-of-line character), or null if the end of file has been reached.


Example
>>// Display the contents of a file.
>>function showfile(fname)
 >file=fopen(fname,"r")
 >while(true)
 >  a=fgets(file)
 >  if(a==null);break;end
 >  printf("%s\n",a);
 >end
 >fclose(file)