Use file pointer to get file content : File Pointer : File PYTHON examples


PYTHON examples » File » File Pointer »

 

Use file pointer to get file content




f = open('somefile.txt', 'w')
print >> f, 'This is the first line'
print >> f, 'This is the second line'
print >> f, 'This is the third line'
f.close()

           
       



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


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


PYTHON examples

 Navioo File
» File Pointer