Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C (http://www.programmingforums.org/forum60.html)
-   -   Dump Tool (http://www.programmingforums.org/showthread.php?t=11035)

jazz Aug 11th, 2006 4:37 AM

Dump Tool
 
Hi,

I have to write a Dump Tool for a file on UNIX. I have never written a dump tool before. Can anyone please guide me how to proceed??

jazz

DaWei Aug 11th, 2006 6:57 AM

No sweat. What do you want, core dump, hex dump, text dump, pickle dump, or maybe just a laxative?

jazz Aug 11th, 2006 7:23 AM

Sorry .. text dump

DaWei Aug 11th, 2006 7:27 AM

Dump to the screen? Dump to a printer? Dump to a destination specified on the command line? Dump triggered by an external event? Do two things. Refer to UNIX utility documentation and read at least two "How to Post a Question" threads.

jazz Aug 11th, 2006 7:37 AM

Hi, thanks for the suggestion i just now read the thread u mentioned...

I was mentioning about a dump program which takes a file as input, reads that file and gives a text dump file as an output in the same directory...

Hope i posted correctly..

OpenLoop Aug 11th, 2006 7:40 AM

So you want to create a copy of the file?

DaWei Aug 11th, 2006 7:44 AM

Off topic, I see that I need to create a smiley that suggests the difficulty of pulling teeth. It would be more efficient than my normal boiler-plate post.

Infinite Recursion Aug 11th, 2006 9:16 AM

Dump of what? Memory?

jim mcnamara Aug 11th, 2006 2:50 PM

:

od -c filename.txt > newfilename.txt
od -c ASCII dump
od octal
od -x hex

Kennedy Aug 12th, 2006 12:30 AM

Has school started back already??


All times are GMT -5. The time now is 12:45 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC