index

Varkon MBS Programmers manual


iostat - Function

Description

Returns the error status of the latest operation performed on a file or pipe. The result depends on what type of operation it was but a value of zero always indicates success (no error).

Syntax

  i:=iostat(f);

  int  i;
  file f;

Principal parameters

f - The name of a filevariable accociated with an open file or pipe

Optional parameters

None.

Return value

An INT value equal to the current error status as below:

  0 = Operation was successful
-1 = End of file
-2 = Can't open the file
-3 = Can't close the file
-4 = File not opened for write (W)
-5 = File not opened for read (R)
-6 = Write error
-7 = Read error
-8 = Seek error
-9 = File not opened for update (U)
-10 = File not open
-11 = Item not read

See also

test_file()


SourceForge.net Logo

Varkon 1.19D svn # 120M