add newline to file error