www.delorie.com/gnu/docs/gforth/gforth_43.html   search  
 
Buy GNU books!


Gforth Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.26.5 Close files

 
fd-in close-file throw
fd-out close-file throw

Likewise, you can put that into definitions, too:

 
: close-input ( -- )  fd-in close-file throw ;
: close-output ( -- )  fd-out close-file throw ;

Assignment:
How could you modify copy-file so that it copies until a second line is matched? Can you write a program that extracts a section of a text file, given the line that starts and the line that terminates that section?


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003