Converstion of HexaDecimal string to normal string
In one of my application i have converted a string to hexadecimal value and i have stored the hexadecimal 开发者_开发技巧value in a file. later i am retrieving the values from the file as it is in hexadecimal value can you suggest me how to make it to a normal string so that i can have the application more easy to built
well, assuming you converted each char to a hexidecimal string and wrote it, you could recover each char with char c = Integer.parseInt(hexCharStr, 16)
. then you put all the chars in a char[] and construct a String using new String(charArr)
.
精彩评论