FileStream fs = File.Open("f:\a.txt", FileMode.OpenOrCreate,FileAccess.Read);
byte[] bt=new byte[fs.Length];
fs.Read(bt, 0, bt.Length);
textbox1.text= Encoding.Default.GetString(bt);
fs.Close();//дFileStream fs = File.Open("f:\a.txt", FileMode.Create, FileAccess.Write);
byte[] bt=Encoding.Default.GetBytes(textbox1.text.Replace("\n","\r\n"));
fs.Write(bt, 0, bt.Length);
fs.Close();