I am want saving data in my txt file area but when I am try my below code then it's going saving in my txt file all line end area.
Actually my file available more then 4000 line so I am always want new line going saving first line area.
Please help me how I am saving data in first line area always.
below code only saving all line after mean end the area but I am want start line area going saving data.
string myFile = @"C:\\live\\dadata.txt";
StreamReader osr = new StreamReader(myFile);
string myText = osr.ReadToEnd();
osr.Close();
osr.Dispose();
StreamWriter osw = new StreamWriter(myFile);
osw.Write(myText + Environment.NewLine + workd.Text);
osw.Close();
osw.Dispose();