System.WideStrings.TWideStrings.SaveToFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.WideStrings.pas
System.WideStrings.hpp
System.WideStrings TWideStrings

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 default encoding, as specified in the Default property of the TEncoding class.

Note: In Linux, SaveToFile saves the strings as they appear in the list. If the last string does not have an end-of-line marker, the resulting file may be considered incomplete by some editors.

See Also