Newsgroups: comp.lang.ada,comp.lang.apl,comp.lang.basic.misc,comp.lang.basic.visual,comp.lang.c,comp.lang.c++,comp.lang.clos,comp.lang.eiffel,comp.lang.forth,comp.lang.fortran,comp.lang.lisp,comp.lang.misc,comp.lang.modula2,comp.lang.oberson,comp.lang.pascal,comp.lang.prolog,comp.lang.smalltalk,comp.lang.objective-c,comp.lang.functional
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!nntp.sei.cmu.edu!news.psc.edu!hudson.lm.com!newsfeed.pitt.edu!dsinc!spool.mu.edu!howland.reston.ans.net!news.sprintlink.net!in1.uu.net!news1.digital.com!nntp-hub2.barrnet.net!pacbell.com!gw2.att.com!nntpa!not-for-mail
From: arw@mtatm.mt.att.com (Aaron Waters)
Subject: Re: Please help with research
Message-ID: <DELrxC.AE1@nntpa.cb.att.com>
Sender: news@nntpa.cb.att.com (Netnews Administration)
Nntp-Posting-Host: mtatm.mt.att.com
Organization: AT&T
References: <405glu$cv6@ixnews7.ix.netcom.com>
Date: Fri, 8 Sep 1995 20:07:58 GMT
Lines: 35
Xref: glinda.oz.cs.cmu.edu comp.lang.ada:34613 comp.lang.apl:7329 comp.lang.basic.misc:8776 comp.lang.c:154654 comp.lang.c++:148187 comp.lang.clos:3475 comp.lang.eiffel:10770 comp.lang.forth:23849 comp.lang.fortran:32190 comp.lang.lisp:19039 comp.lang.misc:22991 comp.lang.modula2:12565 comp.lang.prolog:13822 comp.lang.smalltalk:28132 comp.lang.objective-c:4428 comp.lang.functional:6370


Just saw your post: I don't understand.  But here's some python:
(See http://www.python.org)
===
# a small Python "dump" program which opens a named file
# and displays its data in hexadecimal and ASCII format.

from string import joinfields

def mapper(char):
    return hex(ord(char))

def dump(filename):
    f = open(filename, "r")
    text = f.read()
    # print the ascii
    print text
    # print the hex (no line breaks)
    print joinfields( map(mapper,text), " " )

# this can be used interactively or "wrapped" in a filter...
=====

>I'm doing comparative language research for a magazine article....
>
>You can help by writing a small "dump" program which opens a named file
>and displays its data in hexadecimal and ASCII format.
>
>Jerry Fitzpatrick            Consulting and Training for
>Red Mountain Corporation     Software Architecture and Quality
>1795 N. Fry Rd, Suite 329    (including C / C++ / OOA / OOD)
>Katy Texas USA 77449         Phone/Fax: 713-578-8174



