Hello Pascal
I've spent the last week,as time allows,trying not to bother
you good people with this. I assume it's an easy question for
experienced people.
What I have compiles and,when run,gives me DOS error 5 - file
access denieghd. (file not open for writting). What I have seems
to folow what my turbo 4 book says(I'm writing in free Pascal)
but won't run.
I'm trying to (eventually) save a list of arrays to disk from
one p'gram and read then with another p'gram.
Turbo seems to imply that this works only with records but I've tried it without. Same difference.
Pertinent parts:
type
box_array = array[0..256]of array[0..2] of smallint;
can = record
carton : box_array;
end;
{************}
var
i,j : smallint;
box : box_array;
canis : can;
canister : file of can;
{**************}
assign(canister,'e:');
reset(canister);
write(canister,canis);
close(canister);
writeln('all on disk');
readln;
assign(canister,'e:');
reset(canister);
read(canister,canis);
close(canister);
writeln('all on disk');
readln;
I assume this is some obvious mistake that I can't get from
my turbo 4 book.
Appreciate any help.
Front one's