I suggest that File::open_file returns a reference to the stream instead of a copy.