20 lines
448 B
Plaintext
20 lines
448 B
Plaintext
:sig
|
|
String file_get_contents(String file_name)
|
|
|
|
:params
|
|
file_name : file name of file that should be read
|
|
return value : String containing the file's contents
|
|
|
|
:see
|
|
>sys
|
|
|
|
:content
|
|
Reads the file identified by `file_name` and returns it as a `String`.
|
|
|
|
If the file cannot be read, this function returns an empty string.
|
|
|
|
## Related Concepts
|
|
|
|
- PHP: `file_get_contents()`
|
|
- JavaScript / Node.js: Node `fs.readFileSync()` or `fs.promises.readFile()`
|