using System.IO;
using System.Xml;
string strSaveFilePath = "C:\\test.txt";
StreamReader SRead = new StreamReader(strSaveFilePath, System.Text.Encoding.UTF8);
string strFileLine = string.Empty;
while((strFileLine = SRead.ReadLine()) != null)
{
Console.WriteLine(strFileLine);
}
SRead.Close();
string strTest = "testtest";
StreamWriter SWrite = new StreamWriter(strSaveFilePath,false,System.Text.Encoding.UTF8);
SWrite.WriteLine(strTest);
SWrite.Close();
'Language > C#' 카테고리의 다른 글
ibatis의 탄생 철학 (0) | 2016.02.04 |
---|---|
IBatisNet.Common.Exceptions.ConfigurationException (0) | 2016.02.04 |
DateTime.ToString 메서드 (String) (0) | 2016.02.04 |
Decimal.ToString 메서드 (String) (0) | 2016.02.04 |
C# Get Web Source / 웹사이트 소스 가져오기 (0) | 2016.02.04 |