mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
- Rename fs.cat to fs.readFile
- Move file.write to fs.writeFile
- Allow strings for the flag argument to fs.open
("r", "r+", "w", "w+", "a", "a+")
- Remove the unused 'File' module / class
5 lines
140 B
JavaScript
5 lines
140 B
JavaScript
process.mixin(require('./common'));
|
|
|
|
var fixture = path.join(__dirname, "fixtures/x.txt");
|
|
|
|
assert.equal("xyz\n", fs.readFileSync(fixture)); |