author | wenzelm |
Fri, 08 Aug 1997 11:22:59 +0200 | |
changeset 3645 | cfbd814a11f2 |
parent 3644 | a3b8d0a0250d |
child 3646 | a11338a5d2d4 |
--- a/src/Pure/library.ML Fri Aug 08 00:11:11 1997 +0200 +++ b/src/Pure/library.ML Fri Aug 08 11:22:59 1997 +0200 @@ -783,9 +783,13 @@ end; fun write_file name txt = - let - val outstream = TextIO.openOut name; - in + let val outstream = TextIO.openOut name in + TextIO.output (outstream, txt); + TextIO.closeOut outstream + end; + +fun append_file name txt = + let val outstream = TextIO.openAppend name in TextIO.output (outstream, txt); TextIO.closeOut outstream end;