Removing newline from end of file.