LoadFileToString loads the contents of the file specified by aFileName into a string variable.
LoadFileToString does not handle unicode characters. To accommodate unicode, please see the WideString version LoadFileToWideString.
Declaration: Function LoadFileToString(const aFileName : string) : string
An example follows.