|
Alright, so I'm making my own little DND game, it's going very well so far and I've decided to create some sort of character saving feature, I figure I'll just do this in a simple text file for now. So, here's what I'm thinking, a while back I made some AI in Perl that wrote to a db file, but the syntax is so different between the two languages that I can't figure out what I'm trying to do anymore, ahha.
The char.txt is going to look like this: charName, charLevel, str, dex, etc...
I need to find out how to find each of these values, I was originally thinking I could use a size_t and do a .find for each comma, separate values... Would this work?
|