Python help

Python file handling

sallas07 | 19 August, 2009 15:16

How can I read a text file from a normal text editor like Ms word or Word pad?

Comments

Re: Python file handling

JT | 23/12/2009, 16:55

open('C:\\path\\to\\file.txt').readlines()

Also note that MS Word isn't really a normal text editor.

Add comment
 authimage
 
Accessible and Valid XHTML 1.0 Strict and CSS
Powered by LifeType - Design by BalearWeb