1. 파일 읽기예제1) 텍스트 파일 읽기/// /// 파일의 내용을 문자열로 읽기 /// /// 파일경로 /// 파일내용(문자열)string ReadAllText(string path) {try { if (File.Exists(path)) { string rs = ""; using (StreamReader sr = new StreamReader(path)) { rs = sr.ReadToEnd(); Trace.WriteLine(path); } return rs; } else { Trace.WriteLine($"[{path}] 파일이 없습니다."); Trace.WriteLine(path); } Debug.Flush(); } catch (Exception ex) { Trace.WriteLine(ex.ToS..