Creates a new File stream from a file descriptor

This is a low-level method.

Property definitions

core $ FileReader :: from_fd
	# Creates a new File stream from a file descriptor
	#
	# This is a low-level method.
	init from_fd(fd: Int) do
		self.path = ""
		_file = fd.fd_to_stream(read_only)
		if _file.as(not null).address_is_null then
			last_error = new IOError("Error: Converting fd {fd} to stream failed with '{sys.errno.strerror}'")
		end
	end
lib/core/file.nit:177,2--186,4