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