Arrays from a file
Hi! I want to write multi line arrays (3D?, you know the ones you declare like int array;) to a file, then read it, and put it into another array.
Basically I'm making a map editor that exports the map you make into the numbers that are in the array, then when you are in the game I need it to read this map file, and set an array to what the file says, exactly how it says in the files. And if you can, not required, make it to where if there is a semicolon in a line it makes it a comment.
BTW: I am using DJGPP and I am programming in console.
To create a 3d array with 7 rows, 6 columns, and 5 columns deep, declare it as the following
As for your other question, look up fstream and fstream.h.
That is what I thought it was, that is why I put ? after 3d. So that means the ones I'm using are 2D, and the ones with only one line are 1D?
I've been searching fstream on the internet, but haven't found anything I can understand.