<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In File I/O Words in TurboForth Kernal
Writes a string from buffer_addr with length len to the file represented by file_id.
none
Returns FALSE if successful, else returns TRUE. This can be trapped with ABORT".
FALSE
TRUE
ABORT"
Example:
FBUF: DISK-FILE S" DSK1.TEST DV80SO" DISK-FILE FILE
: TEST ( -- ) DISK-FILE #OPEN ABORT" Cannot open disk file for output" S" This is a test" DISK-FILE #PUT ABORT" Cannot write to disk" DISK-FILE #CLOSE ;