^.^{
F I L E T H I N G S
NOTES FOR NEXT 2 Parts...........
r: opens a text file in reading mode.
w: opens or creates a text file in writing mode.
a: opens a text file in append mode.
r+: opens a text file in both reading and writing mode.
w+: opens a text file in both reading and writing mode.
a+: opens a text file in both reading and appending mode.
}^.^
^.^---------------------------------------------------------------------------------------------------
pencil "........................................................"
pencil "701 701-Text-Write-Basic.zoe"
^.^ 701 701-Text-Write-Basic.zoe
oh look !
CAN HAS STDIO?
I define writeFile = I wish_to_call STDIO --toBaby--> OPEN <--[ "read.txt" zAnd "w" ]--<
I wish_to_call STDIO --toBaby--> SCRIBBEL <--[ writeFile zAnd "wibble bibble waggle naggle." ]--<
I wish_to_call STDIO --toBaby--> CLOSE <--[ writeFile ]--<
I see !
^.^---------------------------------------------------------------------------------------------------
pencil "........................................................"
pencil "702 702-Text-Read-Basic.zoe"
^.^ 702 702-Text-Read-Basic.zoe
oh look !
CAN HAS STDIO?
I define readFile = I wish_to_call STDIO --toBaby--> OPEN <--[ "read.txt" zAnd "r" ]--<
I wish_to_call STDIO --toBaby--> DIAF <--[ readFile ]--<
I define contents = I wish_to_call STDIO --toBaby--> LUK <--[ readFile zAnd 1024 ]--<
pencil contents
I see !
;