Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import fileinput
- for line in fileinput.input(files=["test.txt"],inplace=True):
- print(line.replace("toto","toto tutu"),end="")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement