Hi,
the below script works, but it adds a new line after it replaces
I cant understand why
it should just do a straight replace
apple|pear
hello|Hi
the below script works, but it adds a new line after it replaces
I cant understand why
it should just do a straight replace
with open('c:/Users/Dan/Desktop/Replace.txt') as f:
for l in f:
#s = l.split()
s = l.split('|')
editor.replace(s[0], s[1])Replace fileapple|pear
hello|Hi
:)
Python newbie trying to learn the ropes
