'r' is the default processing mode : Open : File PYTHON TUTORIALS


PYTHON TUTORIALS » File » Open »

 

'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



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo File
» Open