title: c# how save data in txt file in 1st line area always?
body: <p>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. </p>
  
  <p>Actually my file available more then 4000 line so I am always want new line going saving first line area. </p>
  
  <p>Please help me how I am saving data in first line area always. </p>
  
  <p>below code only saving all line after mean end the area but I am want start line area going saving data. </p>
  
  <pre><code>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();
  </code></pre>