| | |
Write to hex, is it possible?
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jul 2003
Posts: 1
Reputation:
Solved Threads: 0
Please let me know if this is possible or even remotely possible! I need to write to a file, but directly to hex. For example, if I write "2D" to the file, i want to be able to open the file in a hex editor and see "2D" in the hex portion, not the ASCII portion. the only way i have been able to get "2D" into the hex portion is by writing "-" to the file.
i have been told this is possible, but so far have come up empty-handed. any ideas, hints, code, or suggestions would be greatly appreciated! Thanks!
keith
i have been told this is possible, but so far have come up empty-handed. any ideas, hints, code, or suggestions would be greatly appreciated! Thanks!
keith
•
•
Join Date: Aug 2007
Posts: 1
Reputation:
Solved Threads: 0
yeah.. man.. i hav same problem.. i m also able to write my data in Dos Prompt using printf("%02x",mydata);
but wen i write this data into a file using fwrite(mydata,2,count,File *fp);
then its showing byte formate.. i need it in file as showing by printf() in dos screen.... can nebody tell me solution.. yaar hav become so fed-up....
but wen i write this data into a file using fwrite(mydata,2,count,File *fp);
then its showing byte formate.. i need it in file as showing by printf() in dos screen.... can nebody tell me solution.. yaar hav become so fed-up....
LOL you've opened a thread which is like two years old now. The OP might have already solved this problem by now.
Perhaps, he might have got a far better knowledge than what he had when he started this thread. And you post what information does it gives him anyway???? Try to explain things a bit more clear!!
ssharish
Perhaps, he might have got a far better knowledge than what he had when he started this thread. And you post what information does it gives him anyway???? Try to explain things a bit more clear!!
ssharish
•
•
•
•
yeah, i really wish threads that have been inactive for more than 90 days would be automatically locked.
Last edited by Jishnu; Jul 3rd, 2008 at 2:14 pm.
"You know you're a computer geek when you try to shoo a fly away from the monitor screen with your cursor. That just happened to me. It was scary." - Juuso Heimonen.
"The only truly secure computer is one buried in concrete, with the power turned off and the network cable cut." - Anonymous.
"The only truly secure computer is one buried in concrete, with the power turned off and the network cable cut." - Anonymous.
>i just can't imagine it being really THAT hard of a feature to implement.
It's not. In fact, I believe it's a feature of vBulletin if you choose to enable it.
>i really wish threads that have been inactive for
>more than 90 days would be automatically locked.
I don't. It's a good idea in theory, but painfully annoying in practice. Besides, there's no rule against adding to an existing discussion, regardless of how old it is.
It's not. In fact, I believe it's a feature of vBulletin if you choose to enable it.
>i really wish threads that have been inactive for
>more than 90 days would be automatically locked.
I don't. It's a good idea in theory, but painfully annoying in practice. Besides, there's no rule against adding to an existing discussion, regardless of how old it is.
New members chased away this month: 4
![]() |
Similar Threads
- Write a hex file in Delphi (Pascal and Delphi)
- hexadecimal.cpp (C++)
Other Threads in the C Forum
- Previous Thread: press <Esc> to teminate
- Next Thread: Arranging from lowest to highest?
Views: 7552 | Replies: 13
| Thread Tools | Search this Thread |
Tag cloud for C
adobe ansi api append array arrays bash binarysearch centimeter char character convert copyanyfile copypdffile createcopyoffile createprocess() csyntax directory drawing dynamic executable feet fflush file floatingpointvalidation fork frequency getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling hardware highest homework i/o ide infiniteloop initialization interest intmain() kilometer lazy license linked linkedlist linux linuxsegmentationfault list match matrix meter microsoft multi mysql oddnumber odf open openwebfoundation pattern pause pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition scheduling segmentationfault send shape single socketprogramming spoonfeeding stack standard strchr string strings structures student suggestions system test testautomation unix urboc user voidmain() win32 win32api windows.h






