4
Answers

Streamwriter output doesnt work Any Idea?

Than Ice

Than Ice

8y
359
1
public void EditorialResponse(string filename, string word, string replace, string newfile)
{
StreamReader reader = new StreamReader("C\\:MyFile\\Story");
string input = reader.ReadToEnd();
using (StreamWriter writer = new StreamWriter("C\\:MyFile\\Story1", true)
{
string output = input.Replace("lol", "lel");
writer.Write(output);
writer.Close();
}
}
Answers (4)