* INCLUDE ( 'filename' -- ? ) load the specified file, see also LOAD" filename"
INCLUDE
( 'filename' -- ? )
LOAD"
FORTH/FORTH file_misc ordinary primitive
/* more file-manipulation */
* COPY-FILE ( src-str src-strlen dst-str dst-strlen -- errno|0 ) like RENAME-FILE, copies the file from src-name to dst-name and returns an error-code or null
COPY-FILE
( src-str src-strlen dst-str dst-strlen -- errno|0 )
RENAME-FILE
* MOVE-FILE ( src-str src-strlen dst-str dst-strlen -- errno|0 ) like RENAME-FILE, but also across-volumes moves the file from src-name to dst-name and returns an error-code or null
MOVE-FILE
* FILE-R/W ( addr blk f fid -- ) like FIG-Forth R/W
FILE-R/W
( addr blk f fid -- )
R/W
USING
* FILE-BLOCK ( a file-id -- c )
FILE-BLOCK
( a file-id -- c )
* FILE-BUFFER ( a file-id -- c )
FILE-BUFFER
* FILE-EMPTY-BUFFERS ( file-id -- )
FILE-EMPTY-BUFFERS
( file-id -- )
* FILE-FLUSH ( file-id -- ) simulate : FILE-FLUSH DUP FILE-SAVE-BUFFERS FILE-EMTPY-BUFFERS ;
FILE-FLUSH
simulate : FILE-FLUSH DUP FILE-SAVE-BUFFERS FILE-EMTPY-BUFFERS ;
* FILE-LIST ( x file-id -- )
FILE-LIST
( x file-id -- )
* FILE-LOAD ( x file-id -- )
FILE-LOAD
* FILE-SAVE-BUFFERS ( file-id -- )
FILE-SAVE-BUFFERS
* FILE-THRU ( lo hi file-id -- ) see THRU
FILE-THRU
( lo hi file-id -- )
THRU
* FILE-UPDATE ( file-id -- )
FILE-UPDATE