-paul
program test;
var
fle : file
begin
assign (fle,'test.bin')
reset(fle,1) {to open an existing file}
close(fle)
rewrite(fle,1) {to create a binary file)
close(fle)
end.
dont know if that helps at all.
Runtime error 005 is a File Access Denied error. You would get such a
message if you tried Reset on a read-only file. To avoid this problem
either change the file from read-only with SetFAttr or set FileMode to 0 if
you only want to read from the file. All these things mentioned can be
found in the on-line help.
Hope this is of some use,
Andrew Kressman
AndrewK...@SnowdonRailway.Force9.Co.Uk
http://www.geocities.com/SiliconValley/Pines/5974/
In the editor, write "runerror". Then, walk your curson into the word
and hit
Ctrl+F1. Scroll down in the help window to where you see the text:
"Runtime error messages" (something in the lines of that), highlight
it and hit enter.
You will be presented with a bunch of numbers and explanations, etc.
Now, the answer:
Runerror 5 is "File access denied"
Which can mean a lot of things, depending on which file operation
returns it. Check the help and your source and you'll figure it out.