ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: writeFile
Type: FilePath -> String -> IO ()
Description:
Related: appendFile, readFile

Example 1
Program source: 

main = writeFile "/tmp/foo.txt" aaa

aaa  = "BBB" ++ "CCC"
File: /tmp/foo.txt : 

BBBCCC