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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -