Read entire file into a buffer : Read : File PYTHON TUTORIALS


PYTHON TUTORIALS » File » Read »

 

Read entire file into a buffer


filePath = "input.txt"

buffer = "Read buffer:n"
buffer += open(filePath, 'rU').read()
print buffer



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo File
» Read