hi,
i am working on a project to write data into the file and use a search enginee to get the data back. i was advised to use record but i didnt learn record at school. i tried to google it but came up with no solution. that's so far i got but there are a tons of errors:
type
data=record
name:string;
tel:string;
end;
var
infor:array[1..2] of data;
f,a:file of data;
begin
[here i assign some information to the record arrays]
assign(f,'file.txt');
rewrite(f);
writeln(f, infor[1]);
writeln(f, infor[2]);
[ i try to write the records into the file]
[ here is where i got the errors]
assign(a,'file.txt');
reset(a);
i:=1;
while not eof(a) do begin
readln(a, infor);
i:=i+1;
end;
writeln(infor[1].name);
writeln(infor[2].name);
[ i try to read the record back from file and display them on screen. but i never know if it works]
Please, i need your help!!! i am not sure if there is 'record array' and how to write or read' record array' into or out of the flie. please help me!!
grace