Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
Streamwriter output doesnt work Any Idea?
Than Ice
Dec 22 2015 12:22 AM
336
Reply
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();
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
How to print the array having values in the matrix form?
string