Read all the content of the file as a string.

var content = "/etc/issue".to_path.read_all
print content

last_error is updated to contains the error information on error, and null on success. In case of error, the result might be empty or truncated.

See Reader::read_all for details.

Property definitions

core $ Path :: read_all
	# Read all the content of the file as a string.
	#
	# ~~~
	# var content = "/etc/issue".to_path.read_all
	# print content
	# ~~~
	#
	# `last_error` is updated to contains the error information on error, and null on success.
	# In case of error, the result might be empty or truncated.
	#
	# See `Reader::read_all` for details.
	fun read_all: String do return read_all_bytes.to_s
lib/core/file.nit:563,2--574,51