File.SaveText |
Top Previous Next |
Syntax function File.SaveText(Filename: string; Text: string; Filemode: integer [; Encoding: integer]): boolean
Alternative Names
Description Saves a string Text to the file Filename
If you want to read or write binary files or want to control what you're loading and saving, use file-stream function File.Open and its related functions.
The FileMode parameter is one of the following:
The following additional options are available and can be combined with the previous options:
The optional Encoding parameter is one of the following:
If no encoding is given, the system default ANSI code page is used.
See also
Example execute udsblock as begin File.SaveText('c:\data\utf8text.txt', 'This is UTF8 text', __stfOverwrite, __encUTF8);
resulttext = File.LoadText('c:\data\utf8text.txt'); end |