On Tue, Oct 25, 2005 at 12:28:20PM +0100, Colin Millar wrote:
> Or equivalently loop while reading a record at a time (you could also have a
> counter here so you know the length of the file for future) until the iostat
> variable is -1 or -2 (I can never remember which is end of file). Then
> backspace nine times.
The values of iostat are not specified in the standard -- for the
PathScale compiler (which is based on the CraySoft front-end &
libraries), EOF is -4001, or -4002 if the file is completely empty.
-- greg
|