Skip to content

Instantly share code, notes, and snippets.

@oberhamsi
Created January 14, 2010 10:47
Show Gist options
  • Save oberhamsi/277070 to your computer and use it in GitHub Desktop.
Save oberhamsi/277070 to your computer and use it in GitHub Desktop.
helma> var File = require('file')
helma> var outFile = File.open('/tmp/ng.test', 'w')
helma> outFile.write('foo bar')
[object Object]
helma> outFile.flush()
[object Object]
helma> outFile.close()
helma> var inFile = File.open('/tmp/ng.test', 'r')
helma> inFile.read()
foo bar
helma>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment