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

jd|fj|dnv|jd|0.33|c:\\windows\\win32
shcbsbs|nscsjsj|0.93|hsbcjsnc

I am trying to read the file like this:-

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

the result that i get is ike this:-
'jd|fj|dnv|jd|0.33|c:\\\\windows\\\\win32\nshcbsbs|nscsjsj|0.93|hsbcjsnc\n'

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

 ie my output should be

d|fj|dnv|jd|0.33|c:\\windows\\win32
shcbsbs|nscsjsj|0.93|hsbcjsnc


Thanks in advance
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to