e.g.: (from the manual)

// unpack a packed a text database file from the game resource
file_cpy("database.txt","database.pak");