태그 크로스 쓰레드

C# – 자주 쓰는 코드들 (정리중)

#1 실행경로string aaa = Application.StartupPath + “\version_history.txt”;#2 파일 읽기using (StreamReader sr = new StreamReader(file경로, System.Text.Encoding.Default)) { aaa = sr.ReadToEnd(); sr.Close(); }#3 파일 쓰기string strDir = “저장할경로”; string strPath = strDir…