I wrote this simple little program:
def main ( ):
with open("test.txt", "rt") as fin:
with open("out.txt", "wt") as fout:
for line in fin:
fout.write(line.replace("\", "/"))
print ("done")
main ()
I know that "" is an escape literal in Python but all I need is to scan through the text file and replace every single backlash with a forward slash "/".
Anyone knows what to do?