Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
javascript
nodejs
fs-async3.js
fs-async3.js
/* Third way of writing fs-async.js */ //load modules var fs = require('fs'); var callback = { kallme: function(err, content){ console.log(content); } } //asynchronous file reading fs.readFile('./testfiles/largefile800mb.txt', callback.kallme); console.log('Do something else!');
Reload page
Preview
W3C validation
Edit Code
JS Console