![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
|
Write hex to file
Hi,
I have a string that contains hex values(base 16). Like this : "09 1A A3 0B 01" .... and so on. I want to output this into a file that i can only read with a hex editor .. not with notepad. In other words i don't want to write the ascii value in the file, but the hex value of 09 .... wich is 09 .Hope it makes sense.
__________________
Don't take life too seriously, it's not permanent ! |
|
|
|
|
|
#2 |
|
Professional Programmer
|
Got it.
![]() I just take each element :09, 1A .. then apply Convert.toByte(string s, int base) ![]()
__________________
Don't take life too seriously, it's not permanent ! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|