title: How to use fs.write function of node.js?
body: <p>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)</p>
  
  <p>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.</p>
  
  <p>Should they be some integers or string?... or what? I am not able to find out.</p>