HELP! I don't know where to begin with this,
I want to add a line to a txt file that will look like this:
111111 password 12
where 111111 is an ID assigned on registration, password is a randomly generated 6 digit number, and 12 is the access level they are assigned (by default this is 1).

Further to this, I want to (seperate script) read from the txt file and be able edit the rating only (username and password will never change). The level is an integer from 0 to 12.