get_file_contents

astropy.utils.data.get_file_contents(name_or_obj, encoding=None, cache=False) [edit on github][source]

Retrieves the contents of a filename or file-like object.

See the get_readable_fileobj docstring for details on parameters.

Returns :

content :

The content of the file (as requested by encoding).

Page Contents