using System.IO;
FileInfo fileinfo = new FileInfo(Application.ExecutablePath);
FileStream fs = new FileStream(fileinfo.Directory.FullName + @"\test.txt", FileMode.Append);
StreamWriter sw = new StreamWriter(fs, Encoding.Default);
sw.WriteLine("hello world!!");
sw.Close();
'닷넷 프레임워크' 카테고리의 다른 글
wav 파일 재생하기 (0) | 2009.04.29 |
---|---|
랜덤 파일명 생성하기 (1) | 2009.04.29 |
정규식 (0) | 2009.04.27 |
문자열 다루기 (0) | 2009.04.27 |
String 형을 ascii 코드로 변환 (0) | 2009.04.27 |