doesn't crash if file is empty. Simply ends stream.