GetStringFromFile /File I/O

string GetStringFromFile(string fileName)

Returns the entire content from a file as a string.

If it fails, an empty string is returned.

Sample:

const string resourceDir = GetResourceDirectory();
const string content = GetStringFromFile(resourceDir + "my_file.txt");