MasterTR Posted January 22, 2011 Share Posted January 22, 2011 [b]Başlıktan anlaşıldığı gibi C# kodunu yazabilirmisiniz?[/b] Quote Link to comment Share on other sites More sharing options...
win32 Posted January 22, 2011 Share Posted January 22, 2011 (edited) [code] string str = null; StringBuilder convert = new StringBuilder(); foreach (byte b in ASCIIEncoding.ASCII.GetBytes(textBox1.Text)) { string lowBits = Convert.ToString(b, 2); string eightBits = lowBits.PadLeft(8, '0'); convert.Append(eightBits); } str = convert.ToString(); textBox1.Text = str;[/code] Edited January 22, 2011 by win32 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.