And added a readline op. And abused the open op. (Both of which are
temporary, and for debugging purposes/hacking about only!)
The signature is
open Ix, Sy[, Sz]
to open file Y (with optional mode Z, defaults to r+) and stick the
resulting FILE * into Ix. (Yes, FILE *. I'm casting a pointer to an
integer. I *told* you this was nasty)
And to read a line,
readline Sx, iy
to read a line (with fgets, max 64K-2 chars) into Sx from the FILE * in Y.
If Y is the constant 0, 1, or 2 (or the integer register contains 0, 1, or
2) then we use stdin/stdout/stderr as appropriate.
No, print doesn't take a filehandle arg. If someone wants to add it, go ahead.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk