Is there a way to specify the size/length of a file and have the system reserve the space needed? I'm looking for something like:
fs.write('file', Buffer, 1024*1024*54); // To create 54MB file.
Just create a Buffer of that size?
fs.writeFile('file', new Buffer(1024*1024*54));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With