/* ... */
NOTE: Io's files do *NOT* work the same as in most languages. Rather than passing a filename and a mode string ("r", "w", etc), you call one of the methods openForAppending, openForReading, or openForUpdating. Note that there is no "openForWriting" or something like that. The behavior of the "w" mode string (create a new file, overwriting it if it already exists) does not seem to be available in Io. The reference recommends deleting the file first (using File remove) and then using append or update.
...