일반

텍스트파일저장

알 수 없는 사용자 2022. 3. 29. 14:24
SMALL
// 파일 경로를 지정 합니다.
string savePath = @"c:\test.txt";
// 입력 할 text 값
string textValue = lotto+"\n";
// 기존 파일에 text 값을 추가 합니다.
System.IO.File.AppendAllText(savePath, textValue, Encoding.Default);

 

LIST