Mega Code Archive
Categories
/
Python Tutorial
/
File
R is the default processing mode
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