[C#] 파일 쓰기

C#은 파일 쓰기 간단하다 


using System.IO;




string MyFile = @"data.txt";

            string buf = "Hi Hello 안녕";

StreamWriter FW = File.CreateText(MyFile);

            

FW.WriteLine(buf);

            

FW.Close();


'and so on > c#' 카테고리의 다른 글

.NetFramework 설치 확인 하기  (0) 2013.01.17
C# PPT 내용 읽기  (0) 2013.01.15
c# 오피스 참조한 프로젝트 배포 시 필요한 dll  (0) 2013.01.07
c#dll c++에서 사용  (2) 2013.01.02
C++ DLL 함수 char*를 C#에서 읽어 오기  (0) 2012.09.26