byte[] bytes = System.Text.ASCIIEncoding.GetBytes(myString); Jim
> -----Original Message----- > From: David Ferguson [mailto:[EMAIL PROTECTED]] > Sent: 29 May 2002 16:35 > 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.