Reverting to C-style getFileContents