Read File and replace and write data in file on April 29, 2013 Get link Facebook X Pinterest Email Other Apps 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"); Comments
Comments
Post a Comment