Byte Conversion
Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
6 posts
Page 1 of 1
did you use integers ?
because if you did , I can't convert my C:\ drive's bytes because its over 2147483647
because if you did , I can't convert my C:\ drive's bytes because its over 2147483647
cant remember now mate as i did that when i started just found it in my hard drive.
Back Aegean sorry not been on i.v just been moving.
You can use this to convert long integers to a bit string.
Code: Select all
Dim input As Long = Long.MaxValue
Dim bytes As Byte() = BitConverter.GetBytes(input)
Dim ba As BitArray = New BitArray(bytes)
Dim readable As String = ""
For i As Integer = 0 To ba.Length - 1
readable += Convert.ToByte(ba(i)).ToString()
Next
MsgBox(readable)
Hey wrighty, you saw that it is in Tutorials section?
I can't see any tutorials... dunnno;
I can't see any tutorials... dunnno;
6 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023