Read all the stream until the eof.

The content of the file is returned as a String.

var txt = "Hello\n\nWorld\n"
var i = new StringReader(txt)
assert i.read_all == txt

Property definitions

core $ Reader :: read_all
	# Read all the stream until the eof.
	#
	# The content of the file is returned as a String.
	#
	# ~~~
	# var txt = "Hello\n\nWorld\n"
	# var i = new StringReader(txt)
	# assert i.read_all == txt
	# ~~~
	fun read_all: String do
		var s = read_all_bytes
		var slen = s.length
		if slen == 0 then return ""
		return codec.decode_string(s.items, s.length)
	end
lib/core/stream.nit:338,2--352,4