Write entire file: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) No edit summary |
(add Standard ML) |
||
Line 800: | Line 800: | ||
=={{header|SPL}}== |
=={{header|SPL}}== |
||
<lang spl>#.writetext("file.txt","This is the string")</lang> |
<lang spl>#.writetext("file.txt","This is the string")</lang> |
||
=={{header|Standard ML}}== |
|||
<lang sml>fun writeFile (path, str) = |
|||
(fn strm => |
|||
TextIO.output (strm, str) before TextIO.closeOut strm) (TextIO.openOut path)</lang> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |