File.LoadText |
Top Previous Next |
Syntax function File.LoadText(Filename: string): string
Alternative Names
Description Loads the file identified by Filename as text and returns the contents as a string. Works for text files only.
If you want to read binary files or want to control what you're loading, use file-stream function File.Open and its related functions.
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 |