2 importJava "org.simantics.scl.runtime.procedure.StringIO" where
4 Reads all lines of the file whose name is given as a parameter.
5 The file contents are expected to be UTF8 encoded.
7 readLines :: String -> <Proc> [String]
9 "`readLinesWithCharset \"charset\" \"file\"` reads all lines of the file whose name is given as a parameter using the given charset."
10 readLinesWithCharset :: String -> String -> <Proc> [String]
12 "`readContentsWithCharset \"charset\" \"file\"` reads all lines of the file whose name is given as a parameter using the given charset."
13 readContentsWithCharset :: String -> String -> <Proc> String
16 Creates a new file with the given file name whose contents are the given lines.
17 The written file will be UTF8 encoded.
19 writeLines :: String -> [String] -> <Proc> ()
22 `appendLine fileName line` appends `line` to the file with name `fileName`
23 The appended content will be UTF8 encoded.
25 appendLine :: String -> String -> <Proc> ()