Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

runtime error 005

35 views
Skip to first unread message

Paul Hirsch

unread,
May 14, 1998, 3:00:00 AM5/14/98
to

what does this mean using TP7 and doing file creation? I don't have my book
anymore.. :( thanks!

-paul

kairo

unread,
May 15, 1998, 3:00:00 AM5/15/98
to

Well my guess is to open a binary file I believe you need to do the following

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.

Andrew Kressman

unread,
May 15, 1998, 3:00:00 AM5/15/98
to

Paul Hirsch wrote in message ...

>what does this mean using TP7 and doing file creation? I don't have my
book
>anymore.. :( thanks!
>
>-paul
>


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/

Emil Mikulic

unread,
May 17, 1998, 3:00:00 AM5/17/98
to Paul Hirsch

Paul Hirsch wrote:
>
> what does this mean using TP7 and doing file creation? I don't have my book
> anymore.. :( thanks!
>
> -paul

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.

0 new messages