Deleting a line in a .txt file
Posted: 25 Jul 2015 19:53
OK, so I'm working on an RPG batch file game, and you can create accounts to save your game progress and stats and such. On the menu there's a part where you can view all user accounts created, this is possible because every time someone creates an account the username is wrote to an accounts.txt file, then when they go to the screen to view the accounts it types the txt file onto the screen. On the same screen you can delete the accounts, each account is saved as a separate batch file, so its easy to remove the account specified. The problem is that the account name stays in the text file. So my question is, is there a way to remove a line from the text file containing the name specified from a variable set by the player typing the account name that needs to be removed?
If you need more info just ask please, I will give you any info needed. Thank you for reading this and helping me out! It's very appreciated
If you need more info just ask please, I will give you any info needed. Thank you for reading this and helping me out! It's very appreciated
