David, try System.Text.AsciiEncoding.GetBytes, and Encoding.GetBytes. Kit
-----Original Message----- From: David Ferguson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 8:35 AM To: [EMAIL PROTECTED] Subject: [DOTNET] ASCII string to byte[]? ASCII string to byte[]? What is the quickest way to convert a string, that only contains ASCII characters, into a byte array? What method would use the least amount of memory? Thanks...David You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.