public void WriteASCII(string data) { byte[] bytes = Encoding.ASCII.GetBytes(data); ms.Write(bytes, 0, bytes.Length); }