f = open('data.txt') # 'r' is the default processing mode bytes = f.read( ) # Read entire file into a string print bytes print bytes.split( ) # File content is always a string