class YourClass { static string StringToHexString( string input ) { //I dont bother with stringbuilder for small cases like this... just matter of opinion ;) string output = ""; byte[] byteArray = System.Text.ASCIIEncoding.ASCII.GetBytes(input); for( int i = 0; i < byteArray.Length; i++ ) { output += byteArray[i].ToString("X2"); } return output; } }
C# help
Miscellaneous Forums/General Discussion/C# helpThe forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.