Welcome to the IDM Forum. This forum is meant as a user-to-user support mechanism where users can share knowledge and tips for all IDM software.
Since these forums are user-to-user based, IDM does not regularly read or reply to the posts in this forum. For problem reports, suggestions, or feature requests, you must email us directly. Our trained technical support staff answers most inquiries within 30 minutes.



# -*- coding: iso-8859-1 -*-
in_file = open("test.txt","r").readlines() # Put the input file (here called test.txt - rename as required) in same directory as script
counter = 0
while True:
try:
testline=in_file[counter]
except:
break
while True:
try:
x=in_file[counter+1:].index(testline)
except ValueError:
break
in_file.pop(counter+x+1)
counter += 1
out_file = open("output.txt","w") # overwrites output.txt if it exists
for zeile in in_file:
out_file.write(zeile)
out_file.close()
