I am trying to make a program that encrypts a text file. It will go through the file and turn a into b, b into c, and so on. I am having trouble though. this it what I have so far.
A few problems to begin with: (1) When opening a file, I believe you meant to use path as a variable and (2) I don't see why you need the binary mode when dealing with text files.
The method I would suggest reading [preferably to a array of characters(?)] the file's content (if it's very big) and going over every character, replacing it with the next one and finally write it all back to the file. For reading and writing you probably need to review the part about file IO in the tutorial/reference and getting the next char can be done by a function such as: