Menu
  • HOME
  • TAGS

Append string to existing textfile in IronScheme

file,scheme,append,r6rs,ironscheme

IronScheme supports R6RS :) file-options are not available on with-output-to-file, so you need to use open-file-output-port. Example (not correct): (let ((p (open-file-output-port "robot-log.txt" (file-options no-create)))) (fprintf p "~a\r\n" whatToWrite) (close-port p)) Update: The above will not work. It seems you might have found a bug in IronScheme. It is not...

Calling closure using ironscheme

c#,closures,ironscheme

You are passing in a string with "'position", which is not expected from what I can see. Use SymbolTable.StringToObject("position") (object is needed as there will be boxing issues if you expose it is as a valuetype). You are getting the error because (assq name (cdr r)) => #f and you...