[Overview][Constants][Types][Classes][Procedures and functions][Index] |
ReadFileToString - returns a string with the contents of the named file
Source position: fileutil.pas line 175
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 - returns a string with the contents of the named file
Opens the file and reads its contents into a Stream, then reads the stream to construct the Result string
If there is an error in reading the file, an exception is raised and an empty string is returned
lazarus-ccr.sourceforge.net |