19 lines
456 B
Plaintext
19 lines
456 B
Plaintext
:sig
|
|
bool file_put_contents(String file_name, String content)
|
|
|
|
:params
|
|
file_name : file name of file that should be written
|
|
content : content that should be written
|
|
return value : true if write was successful
|
|
|
|
:see
|
|
>sys
|
|
|
|
:content
|
|
Writes `content` into the file identified by `file_name`, overwriting any pre-existing content.
|
|
|
|
## Related Concepts
|
|
|
|
- PHP: `file_put_contents()`
|
|
- JavaScript / Node.js: Node `fs.writeFileSync()` or `fs.promises.writeFile()`
|