Frage:
Wo soll das FileMode im Quellcode hin?
Was ist richtig, 1) oder 2) oder 3)?
Code:
var TR : TextFile;
s : string;
begin
...
1)
AssignFile(TR, 'D:\Dir\FileName.txt');
FileMode:=fmOpenRead;
Reset(T);
...
2)
FileMode:=fmOpenRead;
AssignFile(TR, 'D:\Dir\FileName.txt');
Reset(T);
...
3)
AssignFile(TR, 'D:\Dir\FileName.txt');
Reset(T);
FileMode:=fmOpenRead;
...
{-}
ReadLN(TR, s);
{-}
CloseFile(TR);
{-}
...
Gruss Terence