Kastaneda,
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| std::ofstream File_output ( "massiv_def_vesov.dat", std::ofstream::out);
for(int a=0;a<25;a++)
for(int b=0;b<15;b++)
for(int c=0;c<15;c++)
for(int d=0;d<170;d++)
for(int e=0;e<3;e++)
File_output << massiv_resultatov[a][b][c][d][e];
File_output.close();
std::ofstream File_input ( "massiv_def_vesov.dat", std::ofstream::in);
for(int a=0;a<25;a++)
for(int b=0;b<15;b++)
for(int c=0;c<15;c++)
for(int d=0;d<170;d++)
for(int e=0;e<3;e++)
File_input << massiv_resultatov[a][b][c][d][e];
File_input.close(); |
|
вот такой код для записи и чтения
в итоге ничего не читает как будто дат файл пустой
что не так где ошибка?