get_file_contents

astropy.utils.data.get_file_contents(*args, **kwargs)[source]

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

See the get_readable_fileobj docstring for details on parameters.

Returns
object

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