I/O for an typed file


Posted by Marek on December 11, 2000 at 17:25:06:

how to save and load 'record type'?

for example:
type aaa=record
int:integer;
name:string[10];
end;

I have used:
f:file of aaa;
assign...,rewrite,write(f,...);
but read(f,...); doesnt work.

How can I do that? With blockread/write or ...?


Related Articles and Replies: