turbot_yu
asked on
How convert text string to asc text in vb.net2010
eg. a="202020" need to convert to " "
May I know how to make it, thanks.
May I know how to make it, thanks.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it is now already convert to "533132333435363741202020" in string(by Hex(abNum(i))), I need to convert it back to "abc.....".
Please try the below code.
Dim strSource As String
Dim bteEndode() As Byte
Dim myFileStream As New FileStream("test.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite)
strSource = "asdf"
bteEndode = Encoding.ASCII.GetBytes(st
myFileStream.Write(bteEndo
myFileStream.Close()
Hope it may helpful to you.
Regards
Guvera