[Overview][Constants][Types][Classes][Procedures and functions][Index] |
ReadFileToString - returns a string with the contents of the named file.
Source position: fileutil.pas line 70
function ReadFileToString( |
const Filename: string |
):string; |
Filename |
|
The name of the file for processing. |
The contents of the file as a string, or an empty string if there is an error or the file is empty.
ReadFileToString opens the file and reads its contents into a Stream, then reads the stream to construct the Result string.
If there is an error while reading the file, an Exception is raised and an empty string is returned.
Version 3.2 | Generated 2024-02-25 | Home |