blob: d6f731b784d6d58e16cfe02ad4e28ebc3e6e979e (
plain)
1
2
3
4
5
6
7
8
|
var fs = require('fs');
var file_name = process.argv[2];
var file_size = parseInt(process.argv[3]);
var fd = fs.openSync(file_name, 'w');
fs.ftruncateSync(fd, file_size);
fs.closeSync(fd);
|