All Things Ubuntu Library Wiki
Ubuntu dedicated Object Pascal libraries
Brought to you by:
krisjacewicz
Use this function to load file content into a TStringList object. It will not raise any exception at runtime, instead its return value will let you evaluate whether or not the operation was successful.
Function LoadFromFile(const SL: TStringList; const fn: string): Boolean;
Returns true if the specified file is successfully loaded into the TStringList object. Otherwise it returns false. Most possible reasons for the function to fail (return false) are: