1: 2: 3: 4: 5:
CopyFileToStr("Lala.a00"); //remove('\r'); HexFileString.Remove(HexFileString.IndexOf(),1); HexFileString.Remove(HexFileString.IndexOf('\ '),1);
1: 2: 3:
string filename = "Lala.a00"; string data = System.IO.File.ReadAllText(filename).TrimStart(new char[] {Convert.ToChar(2)}).TrimEnd(new char[] {Convert.ToChar(3)}); System.IO.File.WriteAllText(filename, data);