Updated file reader to ensure proper persistence of newlines, spaces, and new lines.