[fpc-pascal]filesize
Adam Naumowicz
adamn at math.uwb.edu.pl
Wed Jul 24 15:13:23 CEST 2002
On Wed, 24 Jul 2002, Jonas Maebe wrote:
> It's been reported a lot of times already (in several variants), but it is
> not a bug. Typed and untyped files and are by default always opened in
> READ/WRITE mode when using reset (just like in Turbo Pascal) contrary to
> text files, which are opened in read-only mode in that case. Look up the
> "filemode" variable in the manual for information on how to fix this
> problem.
Thanks, I was misled as the error was caused by an operation on the file
(FileSize in this situation) which shouldn't do any attempt to write to
a file. That's why I expected it would not raise errors no matter in
what mode the file was reset.
Regards,
Adam Naumowicz
--------------------------------------
WWW: http://math.uwb.edu.pl/~adamn/
--------------------------------------
More information about the fpc-pascal
mailing list