# File lib/fox16/iterators.rb, line 283 def FXFileStream.open(filename, save_or_load, size=8192, container=nil) # :yields: theFileStream fstream = FXFileStream.new(container) if fstream.open(filename, save_or_load, size) if block_given? begin yield fstream ensure fstream.close end else fstream end else # FXFileStream#open returned false, so report error raise FXStreamError.makeStreamError(fstream.status) end end