Reading a file

aditya shukla adityashukla1983 at
Thu Jul 24 22:06:08 CEST 2008

I have a text file whose contents are like this:-


I am trying to read the file like this:-

>>> x = open("c:\\a.txt","r")

the result that i get is ike this:-

My doubt is how can i read the file as it is?

 ie my output should be


Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list