Anonymous user
File input/output: Difference between revisions
added Haskell
(→[[mIRC]]: mIRC is the interpreter. MSL is the scripting language.) |
(added Haskell) |
||
Line 247:
<cffile action="write" file="#expandPath('output.txt')#" output="#inputContents#">
</cfif>
==[[Haskell]]==
[[Category:Haskell]]
'''Interpreter:''' [[GHC|GHCi]]
Note: this doesn't keep the file in memory. Buffering is provided by lazy evaluation.
copyFile from to = do
filedata <- readFile from
writeFile to filedata
main = copyFile "input.txt" "output.txt"
==[[Java]]==
|