Show: Delphi C++
Display Preferences

System.Classes.TStrings.SaveToFile

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure SaveToFile(const FileName: string); overload; virtual;
procedure SaveToFile(const FileName: string; Encoding: TEncoding); overload; virtual;

C++

virtual void __fastcall SaveToFile(const System::UnicodeString FileName)/* overload */;
virtual void __fastcall SaveToFile(const System::UnicodeString FileName, System::Sysutils::TEncoding* Encoding)/* overload */;

Contents

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TStrings

Description

Saves the strings in the list to the specified file.

Call SaveToFile to save the strings in the list to the file specified by FileName. Each string in the list is written to a separate line in the file.

If the Encoding parameter is not given, then the strings are saved with the encoding specified in the Encoding property.

See Also

Code Examples


Personal tools
Previous Versions
Translations