SaveToFile procedure
Prototype: |
procedure SaveToFile(const FileName :string); |
|
Description: |
SaveToFile procedure saves content of the StringList to the a file. |
|
Syntax: |
StringList.SaveToFile(FileName); |
|
Part |
Description |
|
StringList |
A reference to an instance of a TStringListWrapper |
|
FileName |
A string parameter represents a file name. Under that name will be saved content of the StringList to PC |
|
Return value: |
none |
|
Example:
var
strList1 : TStringListWrapper;
t : string;
begin
strList1 := CreateStringList;
strList1.BeginUpdate;
strList1.Add('Picea');
strList1.Add('Fagus');
strList1.Add('Pinus');
strList1.Add('Larix');
strList1.Add('Abies');
strList1.EndUpdate;
strList1.SaveToFile('newStringList.txt');
strList1.Free;
end.
Output in directory:

the text file (newStrinList.txt) is stored in the directory Field-Map
See also:
Free; Duplicates; Sorted; CaseSensitive; BeginUpdate; EndUpdate; Add; AddStrings; Assign; Clear; Delete; Count; Exchange; Move; Find; IndexOf; Insert; Sort; LoadFromFile; SaveToFile; Strings; Text; Delimiter; DelimitedText; NameValueSeparator; IndexOfName; Name; Value; AsVarArray
© 2024 IFER-Monitoring and Mapping Solutions