Here is some sample code... but I get an error and it's been too long since I've delt with records to figure what I'm doing wrong.
Type
..rooms =
Record
....name :
String[20];
....descpt1, descpt2 :
String;
..
end;
Var
..fname :
file;
Begin
..assign(fname, 'rooms.dat');
..readln(rooms.name);
<---- This is were I get my error, it says it is expecting a '(' after the word 'rooms'. I'm attempting to read input to store into rooms.name... what's going on here?? What am I missing?
end;
Any help will be appreciated... thanks!
Mr. El Moe