Hi,
I need someone to put me on the right track as I need to read a Notepad file that contains the following:
int mappy2_map0[4][4] = {
{ 0, 23, 23, 0 },
{ 0, 23, 23, 0 },
{ 0, 23, 23, 0 },
{ 0, 23, 23, 0 }
};
I have read a bit on streams, but I'm a bit baffled as this text file contains curly braces, commas, basically an actual coding for a 2d array and I don't understand how I can get the array elements from this text file and load them into a 2d array in my compiler/codes.
So if anyone can help then I will be really grateful. Maybe somehow check each character/row of values and see if they are strings or numbers,etc???
Thanks