I want to make a simple game, with a login interface first, when you create your account I want the username, password and level to be stored in login.txt file. Later, when you login, it verifies your level from the file and opens a specific form.
I tried to use
StreamReader sR = new StreamReader("login.txt");
StreamWriter sW = new StreamWriter("login.txt");
It doesn't work.
How can I do it in a simple way?