RosettaCodeData/Task/Write-entire-file/Standard-ML/write-entire-file.ml
2023-07-01 13:44:08 -04:00

3 lines
123 B
Standard ML

fun writeFile (path, str) =
(fn strm =>
TextIO.output (strm, str) before TextIO.closeOut strm) (TextIO.openOut path)