Read entire file: Difference between revisions

Line 997:
 
=={{header|Julia}}==
{{incorrect|Julia|readstring is deprecated}}
The built-in function <code>readstring</code> reads a whole file into a string (assuming UTF8 encoding), or you can also use read to read the content into an array of bytes:
<lang Julia>readstring("/devel/myfile.txt") # read file into a string
7,813

edits