Answers for "delphi textfile"

1

create text file delphi

procedure MakeAStringlistAndSaveThat;
var
  MyText: TStringlist;
begin
  MyText:= TStringlist.create;
  try
    MyText.Add('line 1');
    MyText.Add('line 2');
    MyText.SaveToFile('c:folderfilename.txt');
  finally
    MyText.Free
  end; {try}
end;
Posted by: Guest on March-27-2021

Browse Popular Code Answers by Language