Removing the new line from the end of the file.