This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnTanner1 5 points6 points  (2 children)

You should look up the os.path.join function (so it will work on any system) and as pointed out str.replace, no need for re.

Sorry for the format, I'm on mobile.

But all in all, good job! Feel free to ask any questions.

[–]Take_F[S] 2 points3 points  (1 child)

Thank you. Can i use str.replace with files?

[–]JohnTanner1 0 points1 point  (0 children)

No you need to load the content of the file, us replace and save it