How do I edit a file with a specific name according to the user
JW2005

So after I made this code, it will open a new file but the code cannot write anything into the text file I have opened. Any ways that I can do this. It is sort of like when a user inputs his or her username, the text file will open accordingly, and what the user has typed or edit, the file will append and write them in the text file. But my code doesn't work. TT

You are viewing a single comment. View All
JW2005

@VulcanWM This is just a part of my future code. I wanted to make somesort like a diary with a login n register code and the user can edit in the console and things will be saved into their own textfile so that other ppls things wont be in the same file. So it would be like taking their name as a filename, then the things they enter will only go into the specific filename.