File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3614,10 +3614,10 @@ recommended.
3614
3614
1 . Any specified file descriptor has to support writing.
3615
3615
2 . If a file descriptor is specified as the ` file ` , it will not be closed
3616
3616
automatically.
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 '` .
3621
3621
3622
3622
3623
3623
## fs.writeFileSync(file, data[ , options] )
You can’t perform that action at this time.
0 commit comments