Read entire file: Difference between revisions
Content added Content deleted
No edit summary |
(→{{header|Picat}}: Adding Picat) |
||
Line 1,644: | Line 1,644: | ||
Read as array, one element per line |
Read as array, one element per line |
||
<lang php>file($filename)</lang> |
<lang php>file($filename)</lang> |
||
=={{header|Picat}}== |
|||
The encoding is always UTF-8. Anything more than a small file will cause a buffer overflow. |
|||
{{works with|Picat}} |
|||
<lang Picat> |
|||
main(Args) => |
|||
File = Args[1], |
|||
String = read_file_chars(File). |
|||
</lang> |
|||
=={{header|PicoLisp}}== |
=={{header|PicoLisp}}== |