I'am currently writing a python programm thats extracs phone Numbers into a file.
Since the Data quality is not that great yet we have a few blank numbers. The file looks something like this:
xxxxx
1241515151
""
""
""
""
""
+43 2414141414
0221412414
""
01989797 8
214141
My Question is how do I remove the lines with "".
I tried:
f = open("fastlane.txt","r+")
d = f.readlines()
f.seek(0)
for i in d:
if i != " ""$ ":
f.write(i)
f.truncate()
f.close()
Thanks in advance.