C# 메모장 쓰기


C# 메모장 쓰기

여러가지 방법이 있는데 첫번째는 System.IO.File.WriteAllText(@"주소", 내용); 주소 란에는 저장할 위치를 넣으면 된다. 내용 란에는 저장할 컨텐츠를 넣으면 된다. 두번째는 덮어쓰기 방법이다. StreamWriter writer; writer = File.CreateText(주소); writer.WriteLine(내용); writer.Close(); 세번째는 이어쓰기 방법이다. StreamWriter writer; writer = File.AppendText(주소); writer.WriteLine(내용); writer.Close();...

C# 메모장 쓰기에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.



원문링크 : C# 메모장 쓰기