mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
update doc for node.fs.write()
This commit is contained in:
13
doc/api.html
13
doc/api.html
@@ -827,15 +827,14 @@ on error: no parameters.
|
||||
</ul></div>
|
||||
</dd>
|
||||
<dt class="hdlist1">
|
||||
<tt>node.fs.write(fd, data, position)</tt>
|
||||
<tt>node.fs.write(fd, data, position, encoding)</tt>
|
||||
</dt>
|
||||
<dd>
|
||||
<p>
|
||||
Write data to the file specified by <tt>fd</tt>. <tt>data</tt> is either an array of
|
||||
integers (for raw data) or a string for UTF-8 encoded characters.
|
||||
<tt>position</tt> refers to the offset from the beginning of the file where this
|
||||
data should be written. If <tt>position</tt> is <tt>null</tt>, the data will be written at
|
||||
the current position. See pwrite(2).
|
||||
Write data to the file specified by <tt>fd</tt>. <tt>position</tt> refers to the offset
|
||||
from the beginning of the file where this data should be written. If
|
||||
<tt>position</tt> is <tt>null</tt>, the data will be written at the current position.
|
||||
See pwrite(2).
|
||||
</p>
|
||||
<div class="ulist"><ul>
|
||||
<li>
|
||||
@@ -1907,7 +1906,7 @@ init (Handle<Object> target)
|
||||
<div id="footer">
|
||||
<div id="footer-text">
|
||||
Version 0.1.10<br />
|
||||
Last updated 2009-09-15 15:41:15 CEST
|
||||
Last updated 2009-09-15 22:31:35 CEST
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
11
doc/api.txt
11
doc/api.txt
@@ -503,12 +503,11 @@ node.fs.stat("/tmp/world").addCallback(function (stats) {
|
||||
- on error: no parameters.
|
||||
|
||||
|
||||
+node.fs.write(fd, data, position)+::
|
||||
Write data to the file specified by +fd+. +data+ is either an array of
|
||||
integers (for raw data) or a string for UTF-8 encoded characters.
|
||||
+position+ refers to the offset from the beginning of the file where this
|
||||
data should be written. If +position+ is +null+, the data will be written at
|
||||
the current position. See pwrite(2).
|
||||
+node.fs.write(fd, data, position, encoding)+::
|
||||
Write data to the file specified by +fd+. +position+ refers to the offset
|
||||
from the beginning of the file where this data should be written. If
|
||||
+position+ is +null+, the data will be written at the current position.
|
||||
See pwrite(2).
|
||||
- on success: returns an integer +written+ which specifies how many _bytes_ were written.
|
||||
- on error: no parameters.
|
||||
|
||||
|
||||
@@ -739,12 +739,10 @@ is given as the parameter\.
|
||||
.RE
|
||||
.RE
|
||||
.PP
|
||||
node\.fs\.write(fd, data, position)
|
||||
node\.fs\.write(fd, data, position, encoding)
|
||||
.RS 4
|
||||
Write data to the file specified by
|
||||
fd\.
|
||||
data
|
||||
is either an array of integers (for raw data) or a string for UTF\-8 encoded characters\.
|
||||
position
|
||||
refers to the offset from the beginning of the file where this data should be written\. If
|
||||
position
|
||||
|
||||
Reference in New Issue
Block a user