libgs.database.Database.get_file

Database.get_file(fname)[source]

Grab a file resource and return the bytes or string (.bin or .txt)

Parameters:fname – The name of the file resource
Returns:The resource, either as a string (if its a .txt file) or as a bytearray (if its a .bin file)