code: def data_from_file(self, file, apple_fix=False):
          
          with open(file, mode='rb') as f:
              content = f.read()
  
          if not content:
              raise IOError("File %f is not readable or is empty!" % file)
  
          return self.decode(content, apple_fix=apple_fix)
docs: Read iCal data from file.
  
          :param file: file to read
          :param apple_fix: fix wrong Apple tzdata in iCal
          :return: decoded (and fixed) iCal data