Basically I want to store the map as accordingly to this:
/* Some other data to read here, like map width and height ect ect */ 0,0,0,0,1,0,0,0,0,0,0 0,0,0,0,1,0,0,0,0,0,0 0,0,0,0,1,0,0,0,0,0,0 0,0,0,0,1,2,2,2,0,0,0 0,0,0,0,1,2,2,2,0,0,0 0,0,0,0,1,1,1,1,1,1,1 0,13,13,0,0,0,0,0,0,0,0 0,0,13,13,0,0,0,0,0,0,0 0,0,0,0,0,0,0,0,0,0,0
With ',' as the delimiter, but I'm not sure what methods to use to achieve this, it was quite straight fore-ward when I did it in C# though.
Also should I use string-stream for conversion from ( In my case the map is made out of unsigned char's giving me 1 byte per character and 0 - 255 possible tile ids to work with ) string to unsigned char? Or atoi()?
Hopefully someone kind could help me, thanks in advance!