i1 : g = openOut "test-file" o1 = test-file o1 : File |
i2 : g << "hi there" << endl << close o2 = test-file o2 : File |
i3 : h = openOutAppend "test-file" o3 = test-file o3 : File |
i4 : h << "ho there" << endl << close o4 = test-file o4 : File |
i5 : get "test-file" o5 = hi there ho there |
i6 : removeFile "test-file" |
A filename starting with ~/ will have the tilde replaced by the user's home directory.