The following code to search a file for tabs does not work, at least on
Windows XP. Could someone please tell me what's wrong? Thanks.
xfile = "file_with_tabs .txt"
for text in open(xfile,"r") :
text = text.strip()
if ("\t" in text):
print text
Windows XP. Could someone please tell me what's wrong? Thanks.
xfile = "file_with_tabs .txt"
for text in open(xfile,"r") :
text = text.strip()
if ("\t" in text):
print text
Comment