(string) file.read(string filename);

Reads the entire file into a string and returns that string. This function is binary safe, but use of some string functions to manipulate this string may mangle the data.