I am using node.js for the first time. I want to write a file using the fs.write function. I have taken reference from its file system docs. Its syntax is like this: fs.write(fd, buffer, offset, length, position, callback)
I know how to use fd, buffer and callback in this, but I am not able to figure out how to pass offset, length and position.
Should they be some integers or string?... or what? I am not able to find out.