JohnCampbell
Joined: 16 Feb 2006 Posts: 2554 Location: Sydney
|
Posted: Mon Mar 06, 2006 4:10 pm Post subject: Trying to read past end of file error |
|
|
Norbert,
Would status='OLD', action='READ' fail if the file existed but was empty ? That would cover this case of a file that is empty.
Otherwise you could write a routine that tests for file size, which tests for existence and detects the size of the file. FILE_SIZE@ could be used to test the size and presumably existence of a file. Note size is KIND=3 (I*4), and error_code is KIND=2 (I*2), so I'm not sure what happens if the file is bigger than 2gb.
Regards John |
|