and in main i have:
ofstream out;
out.open ("test.txt", ios::out | ios::binary );
if (!out)
{
cout << "File Open Error" << endl;
cout << "Press Any Key To Close The Program..." << endl;
cin.get();
exit(2);
}
AR.write(out);
out.close();
RubberArray<int> Test;
ifstream in;
in.open ("test.txt", ios::in | ios::binary);
if (!in)
{
cout << "File Open Error" << endl;
cout << "Press Any Key To Close The Program..." << endl;
cin.get();
exit(2);
}
Test.read(in);
in.close();
cout << Test;