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


Gforth Manual

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

3.26 Files

This section gives a short introduction into how to use files inside Forth. It's broken up into five easy steps:

  1. Opened an ASCII text file for input
  2. Opened a file for output
  3. Read input file until string matched (or some other condition matched)
  4. Wrote some lines from input ( modified or not) to output
  5. Closed the files.


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