Path: utzoo!utgpu!watserv1!watmath!att!att!tut.cis.ohio-state.edu!pt.cs.cmu.edu!dsl.pitt.edu!pitt!willett!ForthNet From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: Forth Implementation Message-ID: <1953.UUL1.3#5129@willett.pgh.pa.us> Date: 4 Nov 90 00:27:10 GMT Organization: String, Scotch tape, and Paperclips. (in Pgh, PA) Lines: 18 Category 3, Topic 24 Message 93 Sat Nov 03, 1990 J.BLACK13 [John Black] at 12:29 EST I'm having a little problem with PYGMY Forth. What I want to do is simple. I want to read a binary file, alter the filepointer to skip some header bytes, and copy the rest of the file to a diskfile or printer. FILE-READ(buf cnt f# - ) seems to be the right command. However, when cnt >= decimal 25 the command goes into an endless loop filling up my screen with garbage. Also, even when I read succesfully using a low cnt, I can't find the resulting information in the buffer. (Mainly, I've tried looking thru the buffer using DUMP). I'm not a total novice with Forth, but this one has me puzzled. Any suggestions?? Thanks JEB ----- This message came from GEnie via willett through a semi-automated process. Report problems to: dwp@willett.pgh.pa.us or uunet!willett!dwp