Return the contents of a file as an array of bytes.
Source position: filutilh.inc line 290
function GetFileContents(  | 
const aFileName: RawByteString  | 
):TBytes;  | 
const aFileName: UnicodeString  | 
):TBytes;  | 
const aHandle: THandle  | 
):TBytes;  | 
GetFileContents returns the contents of aFileName or aHandle as an array of bytes. The whole file is read in the case of aHandle: The file position is first set to offset zero.
If an invalid file handle or a file handle that does not support the seek operation, a EInOutError exception is raised.
  | 
Return the contents of a file as a string.  |