In, Out, and All About
DRAFT WIP - TODO
Now what fun is programming if we can't do something a bit more tangible with it? Let's start with how to play with Input/Output (IO) and Files.
Now we gets
it
( Drafting these sections a bit early as I had some requests )
You remember puts right? Well gets
is its evil twin. Instead of putsing something, it gets something:
value = gets
Try that out real quick. Now type in a few characters and press enter. The value of value
will be whatever you entered there.
The Gold Standard
( STDIN, STDOUT, STDERR brief overview )
Reading
( Opening a file to read )
Writing
( Outputting to a file )