Programming and Webmasters forum
HomeSearchRecent PostsLoginRegister Contact Us

Username  
Password
Announcing 14th Weekly Contest - From 25 July To 01 August.

Win every week on this forum.

Chek out How To Win?
 

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
Contest Points: 100
 
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
*
 
Hacker
Gender: Male
Posts: 1224
Topics: 78
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
Skydive in North East England
 
webmaster forum
shefeekj  Offline
For Technical Information
Contest Points: 100
 
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.11 | SMF © 2006-2009, Simple Machines LLC


Google visited last this page July 18, 2010, 08:00:30 AM

Valid XHTML 1.0 Transitional     Valid XHTML 1.0 Transitional