unit3.pas(54,26) Error: Incompatible type for arg no. 1: Got "File Of users", expected "AnsiString"
fileutil.inc(839,10) Hint: Found declaration: FileSize(const AnsiString):Int64;
unit3.pas(76) Fatal: There were 1 errors compiling module, stopping
Код: Выделить всё
procedure AddUser;
type
users=record
nom:integer;
fio:string;
email:string;
end;
var
fuser:file of users;
work:users;
begin
assign(fuser,'user.txt');
{$i-}
reset(fuser);
{$i+}
if (ioresult<>0) then
begin
showmessage('File users.dat not found');
end
else
begin
[b]seek(fuser,filesize(fuser));[/b]// вот тут ошибка возникает
work.nom:=filepos(fuser);
work.fio:=Form3.LabeledEdit1.Text;
work.email:=Form3.LabeledEdit2.Text;
write(fuser,work);
close(fuser);
end;
end;
