You can extract the content of a file with file.read().