# File lib/fakefs/file.rb, line 207 def initialize(path, mode = READ_ONLY, perm = nil) @path = path @mode = mode @file = FileSystem.find(path) @open = true check_modes! file_creation_mode? ? create_missing_file : check_file_existence! @stream = StringIO.new(@file.content, mode) end