help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TStrings.SaveToFile

Save the contents of the list to a file.

Declaration

Source position: classesh.inc line 508

public procedure TStrings.SaveToFile(

  const FileName: String

); virtual;

Description

SaveToFile saves 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.

SaveToFile creates a file stream with name FileName, calls TStrings.SaveToStream and then destroys the file stream object.

Errors

An EStreamError exception can be raised if the file FileName cannot be opened, or if it cannot be written to.

See also

TStrings.SaveToStream

  

Save the contents of the string to a stream.

Tstrings.LoadFromStream

  

Load the contents of a stream as a series of strings.

TStrings.LoadFromFile

  

Load the contents of a file as a series of strings.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505