|
Designed for computer science instruction, Turing is simply the easiest, most fun, and most effective way of teaching programming concepts. |
|
Quick Links |
||
open: fileNumber, fileName, capability {,capability}
fileNumber |
an integer variable that is assigned the stream number by this statement. | ||||||||
fileName |
the string containing the name of the file to be opened. | ||||||||
capability |
this is one of : read, write,
put, get,
seek or mod.
|
Thus, you append to a file by opening the file for put
or write with the mod and
seek attributes and then doing a seek to the
end of file. Any put's or write's following will be added to the end of file.
To add "Hello" to the end of the file "test"
var fileNumber: int
open: fileNumber, "test", put, seek, mod
seek: fileNumber, * % seek to eof
put: fileNumber, "Hello"