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();
}
}
Than Ice5 reputationPosted Dec 21, 2015, 8:01 PM EST
(StreamWriter writer = new StreamWriter("C\\:MyFile\\Story1", true) <------------ here
Thanks anyway (me) :P
Raja TRank #685 · 3.5K reputationPosted Dec 21, 2015, 8:03 PM EST
Than Ice5 reputationPosted Dec 21, 2015, 8:29 PM EST
Rajesh SinghRank #1,806 · 824 reputationPosted Dec 22, 2015, 12:11 AM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts