Programming, website development forum Get latest updates by RSS Follow TechnicalTalk on Twitter Follow TechnicalTalk on Facebook 
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password    
  Forgot your password?  

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

Convert ASCII to string using C#.net

 
webmaster forum
shefeekj  Offline
For Technical Information
Activity
0%
 
New Coder
Posts: 26
Topics: 11
WWW
April 14, 2009, 06:29:53 AM

This code example will demonstrate how to convert ASCII to strings in C# .net

Code:
ASCIIEncoding ascii = new ASCIIEncoding();

byte[] asciiStringArray = ascii.GetBytes(textBox2.Text);

string binaryStringArray = Encoding.ASCII.GetString(a,0,a.Length);
« Last Edit: April 14, 2009, 06:33:19 AM by polas »

http://www.shefeekj.com
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
April 14, 2009, 06:57:10 AM

Cheers, nice post - nice and consise way of doing it Smiley

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
shefeekj  Offline
For Technical Information
Activity
0%
 
New Coder
Posts: 26
Topics: 11
WWW
April 14, 2009, 07:09:01 AM

Thanks for the comment

http://www.shefeekj.com
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.15 | SMF © 2011, Simple Machines


Google visited last this page February 03, 2012, 06:17:00 PM