Answer the question
In order to leave comments, you need to log in
How to write to a file without buffering in Delphi?
This code writes the lines to the file not at once, but in parts:
var
f: textfile;
i: integer;
begin
AssignFile(f, 'file.txt');
ReWrite(f);
for i := 0 to 200 do
begin
WriteLn(f, 'string number ' + IntToStr(i));
Sleep(1000);
end;
CloseFile(f);
end.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question