0
안에 내가 뭘 프로그램에 대한 간단한 로그를 작성하고 난 로그 출력 다양한 메시지에이 라인이 FileAppendText()C# 줄 바꿈은 File.AppendAllText
에 문제납니다 :
File.AppendAllText(filePath, string.Format("{0} {1}{2}", DateTime.Now, message, Environment.NewLine));
을 난 그냥이 결과
줄 것이다이
"This is my first line, \r\n this is my second line \r\n and this is my final line!"
같은 문자열을 사용하려고하면이와
문제입니다
This is my first line, this is my second line and this is my final line!
이
This is my first line,
this is my second line
and this is my final line!
이 문제를 해결하거나 좀 더러운 수정해야 할 수있는 방법이 있나요해야 하는가?
VS 등의 시계 창에서 첫 번째 문자열을 찾으십니까? –
메모장으로 파일을 열려고 했습니까? – Steve
테스트 응용 프로그램에서 File.AppendAllText()와 함께 사용하면 코드가 세 줄을 출력합니다. 더 자세한 설명을 보려면 다른 의견 작성자를 참조하십시오. –