File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3614,10 +3614,10 @@ recommended.
361436141 . Any specified file descriptor has to support writing.
361536152 . If a file descriptor is specified as the ` file ` , it will not be closed
36163616automatically.
3617- 3 . The writing will begin at the beginning of the file . For example, if the
3618- file already had ` 'Hello World ' ` and the newly written content is ` 'Aloha' ` ,
3619- then the contents of the file would be ` 'Aloha World' ` , rather than just
3620- ` 'Aloha '` .
3617+ 3 . The writing will begin at the current position . For example, if the string
3618+ ` 'Hello' ` is written to the file descriptor, and if ` ', World' ` is written with
3619+ ` fs.writeFile() ` to the same file descriptor, the contents of the file would
3620+ become ` 'Hello, World' ` , instead of just ` ', World '` .
36213621
36223622
36233623## fs.writeFileSync(file, data[ , options] )
You can’t perform that action at this time.
0 commit comments