add newline to temp file