TStrings.SaveToFile

Applies to TestComplete 15.69, last modified on November 13, 2024

Loads a list of strings from a specified file.

Declaration

TStringsObj.SaveToFile(FileName) Parameters
TStringsObj     A TStrings object  
FileName [in] Required String
Result     Integer  

Description

The SaveToFile method writes the list of strings separated by new line symbols (0xD 0xA) to the specified file.

Parameters

The method has the following parameter:

FileName

The full path to the file to which the list of strings will be saved. If the file already exists, it will be overwritten.

Remarks

Using the SaveToFile method gives an ambiguous result since this method uses new line symbols to separate strings. For a less ambiguous result, you can obtain the value of the CommaText or DelimitedText property and save it to the file using the aqFile.WriteToTextFile method or using the FileSystemObject OLE object (for more information on it, see the FileSystemObject Object article in the MSDN library).

See Also

TStrings.CommaText
TStrings.DelimitedText
TStrings.LoadFromFile

Highlight search results