frewind
Rewind a currently open file so that the next input charcter is at the beginning of the file.
frewind(fi)
Inputs
fi The reference to a file that has been opened for input.


Description
After the function has been called for an appropriately opened file, the next input character is the first character in the file.
Example
>>showfile("rewindtest.d")
First line
Second line
Third line
>>fi=fopen("rewindtest.d","r")
>>fgets(fi)
First line
>>fgets(fi)
Second line
>>frewind(fi)
>>// The call to 'frewind' repositions the file for first line to be read.
>>fgets(fi)
First line