I’m thinking of reading user stats from a text file, line at a time. My questions:
1.) Saving data line-by-line. I can get the string, how do I just add a line?
2.) What do you say is the best (most efficient way) to save the user’s stats (weapons, points) I’m thinking of this:
If my text file looks like this:
Username1;Password1;2.3.5.3.4.5.7.6.4/5863465/68
Username2;Password2;2.3.5.7.6.8.3.9.6.8.3/28450/01
etc.
The username and password are separated with String.Split(";");
It’s also separated by the slashes and decimals, so they’re all separate.
My idea is that every separated blank represents the weapon that they have per class (like 2 is sub-machine 2, etc). Then the /28450 is their points (except for the slash) and the other is their level. Maybe even upgrades/perks/etc should be included. What do you think? Remember it’s going to be a string so it needs to be able to read it as text. You have a better and more efficient way?