python read file as a whole code example
Example: python read entire file
with open('Path/to/file', 'r') as content_file:
content = content_file.read()
with open('Path/to/file', 'r') as content_file:
content = content_file.read()