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-async2.js
fs-async2.js
/* Another way of writing fs-async.js */ //load modules var fs = require('fs'); var callback = function(err, content){ console.log(content); } //asynchronous file reading fs.readFile('./testfiles/largefile200mb.txt', callback); console.log('Do something else!');
Reload page
Preview
W3C validation
Edit Code
JS Console