]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.runtime/scl/StringIO.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.runtime / scl / StringIO.scl
diff --git a/bundles/org.simantics.scl.runtime/scl/StringIO.scl b/bundles/org.simantics.scl.runtime/scl/StringIO.scl
new file mode 100644 (file)
index 0000000..e30f5b6
--- /dev/null
@@ -0,0 +1,13 @@
+\r
+importJava "org.simantics.scl.runtime.procedure.StringIO" where\r
+    "Reads all lines of the file whose name is given as a parameter"\r
+    readLines :: String -> <Proc> [String]\r
+    \r
+    "`readLinesWithCharset \"charset\" \"file\"` reads all lines of the file whose name is given as a parameter using the given charset."\r
+    readLinesWithCharset :: String -> String -> <Proc> [String]\r
+    \r
+    "Creates a new file with the given file name whose contents are the given lines."\r
+    writeLines :: String -> [String] -> <Proc> ()\r
+    \r
+    "`appendLine fileName line` appends `line` to the file with name `fileName`"\r
+    appendLine :: String -> String -> <Proc> ()\r