Looping Over Characters with read Writing the Loop Differently : File Write : File PYTHON examples


PYTHON examples » File » File Write »

 

Looping Over Characters with read Writing the Loop Differently


 

f = open("filename")
while 1:
    char = f.read(1)
    if not charbreak
    process(char)
    
f.close()    

           
         
  



Leave a Comment / Note


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


PYTHON examples

 Navioo File
» File Write