7
C #을 사용하여 파일에서 텍스트를 찾아 바꾸는 방법
지금까지 내 코드 StreamReader reading = File.OpenText("test.txt"); string str; while ((str = reading.ReadLine())!=null) { if (str.Contains("some text")) { StreamWriter write = new StreamWriter("test.txt"); } } 텍스트를 찾는 방법을 알고 있지만 파일의 텍스트를 내 텍스트로 바꾸는 방법을 모릅니다.