This question shows research effort; it is useful and clear
2
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
import csv,sys
phile="E:/Users/san/Documents/phonebook.txt"
ph=open(phile,"rt")
try:
lines= csv.reader(ph)
for each in lines:
print each,
except Exception as er:
print er
finally: ph.close()