READING AND WRITING MULTIDIMENSIONAL ARRAYS

HI I'M NEW TO BORLAND C++, AND WE HAVE THIS PROJECT ON IT.

I REALLY NEED TO KNOW HOW TO WRITE SEVERAL MULTI-DIMENSIONAL ARRAYS INTO A FILE THEN READ THEM BACK.

MY ARRAYS ARE:

double A[7][400]
int B[45]

I ALSO NEED TO SAVE 2 BOOL VARIABLES

bool C,D;

How do I write the above into a file with a user-defined filename, and read them back?
use for loop
closed account (zb0S216C)
Writing is a simple process:

1
2
3
4
5
6
7
8
9
10
11
// Create a output stream to a file of your choice.

for( /* Parameters */ )
{
    for( /* Parameters */ )
        // Write the column value to the file.

    // Flush the stream.
}

// Send the Boolean values to the file. 


Wazzak
how do you put them a and b in one file instead of many files?
I really need the syntax
Topic archived. No new replies allowed.