(self, filename, binary=False)
Returns contents of given file with AppDir.
        If file doesn't exist, returns None.
Returns contents of given file with AppDir.
        If file doesn't exist, returns None.
Returns contents of given file with AppDir . If file doesn t exist returns None .
def read(self, filename, binary=False):
        """Returns contents of given file with AppDir.
        If file doesn't exist, returns None."""

        self._raise_if_none()
        fn = path_join(self.path, filename)

        if binary:
            flags = 'br'
        else:
            flags = 'r'

        try:
            with open(fn, flags) as f:
                return f.read()
        except IOError:
            return None
def read ( self , filename , binary = False ) : self . _raise_if_none ( ) fn = path_join ( self . path , filename ) if binary : flags = 'br' else : flags = 'r' try : with open ( fn , flags ) as f : return f . read ( ) except IOError : return None