get_file_contents¶
-
astropy.utils.data.get_file_contents(name_or_obj, encoding=None, cache=False)[source] [edit on github]¶ Retrieves the contents of a filename or file-like object.
See the
get_readable_fileobjdocstring for details on parameters.Returns: content
The content of the file (as requested by
encoding).