fix bug in sample code for Stream.resource

The sample code makes a reference to "File.close!", which
doesn't exist. Also, when opening the file with "File.open",
we receive a tuple, which is not pattern matched by the
"next function" (second argument of Stream.resource).
Replacing it with "File.open!" solves the problem.