I found references to FIleIO class circa 2008, but seems none are implemented. .3-1.2 has chout <= float <= int <= string ... and same for cherr but how to go to file instead of console? Guess I could just redirect on command line, but kinda kludgy. -- Rich
Hey Rich,
There are a few examples of how to write to a file directly here:
http://chuck.stanford.edu/doc/examples/io/
specifically
http://chuck.stanford.edu/doc/examples/io/write.ck
Basically you create a FileIO object and open it for writing -- FileIO and
chout are both subclasses of the IO object, and support basically the same
writing operations.
spencer
On Mon, Jul 8, 2013 at 7:43 PM, Rich Caloggero
I found references to FIleIO class circa 2008, but seems none are implemented.
.3-1.2 has chout <= float <= int <= string ... and same for cherr
but how to go to file instead of console?
Guess I could just redirect on command line, but kinda kludgy.
-- Rich
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (2)
-
Rich Caloggero
-
Spencer Salazar