[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Save the contents of the list to a file.
Source position: classesh.inc line 500
public procedure TStrings.SaveToFile( |
const FileName: String |
); virtual; |
SaveToFilesaves the contents of the stringlist to the file with name FileName. It writes the strings to the file, separated by end-of-line markers, so each line in the file will contain 1 string from the stringlist.
SaveToFilecreates a file streamwith name FileName, calls TStrings.SaveToStreamand then destroys the file stream object.
An EStreamErrorexception can be raised if the file FileNamecannot be opened, or if it cannot be written to.
|
Save the contents of the string to a stream. |
|
|
Load the contents of a stream as a series of strings. |
|
|
Load the contents of a file as a series of strings. |