i'm writing a simple project in C++ for my programing class. I'm making a simple pokemon battle simulator which runs in the console
The problem ive run into however, is what is the best way to store the data of the pokemon? I have to store things such as HP, Attack, Defense, etc in a file, but I'm not sure whats the best way to approach this. I know some basics of reading and writing to a file, but nothing that fulfills what I'm trying to do. I was thinking using YAML, but after spending hours trying to figure it out I gave up, since i dont think i need something that complex
I guess some psuedocode for what im trying to do would be like
Open file
find string with name "pikachu"
find defense for pokemon pikachu
defense = pikachu defense
find HP for pokemon pikachu
HP = pikachu HP
find attack for pokemon pikachu
attack = pikachu attack
So what would be the best way to do this, tool to use?