Path: utzoo!attcan!uunet!willett!ForthNet From: ForthNet@willett.UUCP (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: for us beginners? Help Message-ID: <254.UUL1.3#5129@willett.UUCP> Date: 13 Jan 90 02:59:30 GMT Organization: Latest Link in ForthNet Chain (Pittsburgh, PA) Lines: 24 Date: 01-11-90 (23:31) Number: 1553 To: C.WEIMANN1 [KONG] Refer#: 1550 From: BILL MCCARTHY Read: NO Subj: FOR US BEGINNERS? HELP Status: PUBLIC MESSAGE HOPEN resets R/W-MODE back to it's default value. So, the first time you run your program the file is in READ-WRITE mode (as set in FIO.SEQ) and works fine. However in subsequent runs, you probably open the file in READ-ONLY mode (which is the FPC default as shipped), then your program fails when it tries to write to the file. One solution is to place a READ-WRITE or a WRITE-ONLY before the HOPEN. Another is set up your system to default to READ-WRITE mode and forget about the modes: READ-WRITE R/W-MODE =: R/W-DMODE SAVE-EXE BTW Kong, your stack diagram for BLANKREC is incorrect since HCLOSE returns a flag. ----- This message came from GEnie via willett through a semi-automated process. Report problems to: 'uunet!willett!dwp' or 'willett!dwp@gateway.sei.cmu.edu'