Ok so i use fgets to remove the first line. Then grab the next line and want to cut it up into 3 sections. Where the commas are and the newline is. So I can slice up the line into sections and dump it into the structure. It's a simple structure just has:
1 2 3 4 5 6
struct DBitem
{
std::string name;
std::string directory;
int number;
};
Hopefully it kind of makes sense what I'm trying to do as it's a little hard to explain. It compiles fine but crashes right away.
Thanks - If you want me to try to explain and area more in what I'm doing let me know. But i think one of you might see what I'm doing wrong right away.
You know when you have your mind set on something, and you want to get it to work a certain way just to put yourself at rest (least thats what I do, I know I'm sad - don't need to point that out :) )