Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Silly excersise
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01500484
Message ID:
01500496
Views:
48
>Hi All, just messing around - not a work thing - if I have a string of binary digits such as
>
>
>string s = "0101000001000101010101000100010101010010"
>
>
>how do I convert it to text ?, all the Convert.* methods I've looked at require a byte[] array as an arg and I don't know how to create one !

If you can loop passing 8 at a time:
string s1 = "01010000";
char x = Convert.ToChar(Convert.ToInt32(s1, 2));
Previous
Reply
Map
View

Click here to load this message in the networking platform