]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.runtime/scl/StringIO.scl
Merge commit '53059ca'
[simantics/platform.git] / bundles / org.simantics.scl.runtime / scl / StringIO.scl
1 \r
2 importJava "org.simantics.scl.runtime.procedure.StringIO" where\r
3     "Reads all lines of the file whose name is given as a parameter"\r
4     readLines :: String -> <Proc> [String]\r
5     \r
6     "`readLinesWithCharset \"charset\" \"file\"` reads all lines of the file whose name is given as a parameter using the given charset."\r
7     readLinesWithCharset :: String -> String -> <Proc> [String]\r
8     \r
9     "Creates a new file with the given file name whose contents are the given lines."\r
10     writeLines :: String -> [String] -> <Proc> ()\r
11     \r
12     "`appendLine fileName line` appends `line` to the file with name `fileName`"\r
13     appendLine :: String -> String -> <Proc> ()\r