human
Doc, rtf and txt reader in python
assistant
Here is some code to read the contents of the file 'file.txt' into `txt`

txt = open('file.txt').read()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.