X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.runtime%2Fscl%2FStringIO.scl;h=1971afc83ad3e259dedc1b3db42f4d7daba9cf3a;hb=674fafd9fc3c75e46cbb73dc3c413e0cbc83b187;hp=e30f5b6052d4b0b3a5b48ecb49b210d5cd711057;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.runtime/scl/StringIO.scl b/bundles/org.simantics.scl.runtime/scl/StringIO.scl index e30f5b605..1971afc83 100644 --- a/bundles/org.simantics.scl.runtime/scl/StringIO.scl +++ b/bundles/org.simantics.scl.runtime/scl/StringIO.scl @@ -1,13 +1,13 @@ - -importJava "org.simantics.scl.runtime.procedure.StringIO" where - "Reads all lines of the file whose name is given as a parameter" - readLines :: String -> [String] - - "`readLinesWithCharset \"charset\" \"file\"` reads all lines of the file whose name is given as a parameter using the given charset." - readLinesWithCharset :: String -> String -> [String] - - "Creates a new file with the given file name whose contents are the given lines." - writeLines :: String -> [String] -> () - - "`appendLine fileName line` appends `line` to the file with name `fileName`" - appendLine :: String -> String -> () + +importJava "org.simantics.scl.runtime.procedure.StringIO" where + "Reads all lines of the file whose name is given as a parameter" + readLines :: String -> [String] + + "`readLinesWithCharset \"charset\" \"file\"` reads all lines of the file whose name is given as a parameter using the given charset." + readLinesWithCharset :: String -> String -> [String] + + "Creates a new file with the given file name whose contents are the given lines." + writeLines :: String -> [String] -> () + + "`appendLine fileName line` appends `line` to the file with name `fileName`" + appendLine :: String -> String -> ()