Nov 10, 2021 07:26 PM
(This post was last modified: Nov 10, 2021 07:30 PM by Beginner1234.)
Where I have to drag the file before the filter.This is my existing code: [code]input = open("first file.txt", "rt") output = open("revised.txt", "wt") for line in input: output.write(line.replace("Bob", "James").replace("Xavier", "Jake")) input.close() output.close()
Now, this works but I have to manually add "first file.txt" to python files and the program doesn't search the computers files. How would I make the program automatically search the computers files?
Now, this works but I have to manually add "first file.txt" to python files and the program doesn't search the computers files. How would I make the program automatically search the computers files?



![[Image: z4PvoJm.jpg]](https://i.ibb.co/HVJyss0/z4PvoJm.jpg)