javascript - Node.JS WriteFile - File of specific size -


is there way specify size/length of file , have system reserve space needed? i'm looking like:

fs.write('file', buffer, 1024*1024*54); // create 54mb file. 

just create buffer of size?

fs.writefile('file', new buffer(1024*1024*54)); 

Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -