RakeshKushwaha82
Monday, 29 April 2013
Read File and replace and write data in file
StreamReader sr=new StreamReader(@"d:\\file.txt");
string data = sr.ReadToEnd();
data = data.Replace("<", "iqbal");
textBox1.Text = data;
File.WriteAllText(@"d:\\iqbalpasina2.txt", data);
MessageBox.Show("Replace Done");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment