Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created November 25, 2010 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilesbowkett/716004 to your computer and use it in GitHub Desktop.
Save gilesbowkett/716004 to your computer and use it in GitHub Desktop.
this is output from sibilant, a lisp which compiles to node.js
var fs = require("fs"),
sys = require("sys"),
buffer = (new Buffer(10000));
fs.open("./jsfiles.list", "r", (function(err, fd) {
// err:required fd:required
return fs.read(fd, buffer, null, "utf8", (function(error, string, count) {
// error:required string:required count:required
return sys.puts(buffer.toString());
}));
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment