I want to read values from a text file using fstream, but I want to read a specific line number and store each line number into an array.
For example my text file will look like this:
V1.0
GroundLayer
22
11
11
22
55
66
So line 1 is the version, line 2 is the tile layer, and 3 on are tile id's. I have it reading the WHOLE file properly, just how do I use getline or what ever to return one line at a time.
Then I can do a for loop to store each into an array, but I just don't understand getline lol.
Thanks in advanced.
I am working on a 2D Side Scrolling MMORPG, the journey is being blogged and I suggest you check it out. Will include all progress, road blocks even drama! http://exoengine.com/blog/