Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Silly excersise
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01500484
Message ID:
01500496
Vues:
47
>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));
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform