Bullet proofed openFileForContents.