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!europa.chnt.gtegsc.com!gatech!news.mathworks.com!newsfeed.internetmci.com!news.sprintlink.net!rockyd!pisa.rockefeller.edu!penev
From: Penio Penev <penev@pisa.rockefeller.edu>
Subject: Re: Please help with research 
In-Reply-To: <405glu$cv6@ixnews7.ix.netcom.com> 
X-Nntp-Posting-Host: pisa.rockefeller.edu
Content-Type: TEXT/PLAIN; charset=US-ASCII
Message-ID: <Pine.SGI.3.91.950817192631.4238D-100000@pisa.rockefeller.edu>
Sender: notes@rockyd.rockefeller.edu (News Administrator)
Organization: Rockefeller University
References: <405glu$cv6@ixnews7.ix.netcom.com> 
Mime-Version: 1.0
Date: Thu, 17 Aug 1995 23:37:43 GMT
Lines: 36
Xref: glinda.oz.cs.cmu.edu comp.lang.ada:34039 comp.lang.apl:7213 comp.lang.basic.misc:8225 comp.lang.c:151824 comp.lang.c++:144549 comp.lang.clos:3397 comp.lang.eiffel:10437 comp.lang.forth:23580 comp.lang.fortran:31330 comp.lang.lisp:18822 comp.lang.misc:22743 comp.lang.modula2:12373 comp.lang.prolog:13675 comp.lang.smalltalk:27337 comp.lang.objective-c:4367 comp.lang.functional:6212

On 7 Aug 1995, Jerry Fitzpatrick wrote:

> You can help by writing a small "dump" program which opens a named file
> and displays its data in hexadecimal and ASCII format. You can use
> *any* language and *any* hardware platform. I need debugged code
> however, not just an algorithm or description.

----
Dump LOAD	\ DUMP, proprietary to FORTH, Inc.
OS_Files LOAD	\ Manupulate U*X files
: FDUMP		\ open and dump the current file   
	FOPEN  PAD FSIZE  2DUP FREAD FCLOSE  DUMP ;
: FDUMP"	\ dump the named file; usage: FDUMP" filename"
	34 STRING  >FNAME  FDUMP ;
----

>    * your name
>    * target platform

almost any

>    * programming language

FORTH 

>    * compiler/interpreter used

polyFORTH with OS files for IRIX.

> I appreciate your help and will try to credit you in the article when
> it's published.

I wonder how you will compare the different solutions :-)

--
Penio Penev <Penev@pisa.Rockefeller.edu> 1-212-327-7423
