Kodewerx

Our culture has advanced beyond all that you could possibly comprehend with one hundred percent of your brain.
It is currently Tue Mar 19, 2024 1:35 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jun 03, 2009 7:05 pm 
Offline
Kommunist
Kommunist

Joined: Mon Jun 23, 2008 9:43 pm
Posts: 4
How would I go about doing something like this? I've only done File I/O with txt/img files.

My Goal: Read in rom dump and display file (specified locations) in hex.

Any help?


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 04, 2009 9:11 pm 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:26 pm
Posts: 3768
Title: All in a day's work.
You could probably use iostream, but since I really hate C++, I'll just suggest looking up the standard C stdio functions: fopen(), fclose(), fread(), and fwrite(). And when you are ready to print the values in hex: sprintf().

_________________
I have to return some video tapes.

Feed me a stray cat.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 05, 2009 9:41 am 
Offline
Kommunist
Kommunist

Joined: Mon Jun 23, 2008 9:43 pm
Posts: 4
I'll try that. Thanks.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group