- std::ifstream stream;
- stream.open ("zahlen.txt", std::ifstream::in);
- int j=0;
- while (stream.good() && j<7) {
- for (int i=0; i<7; ++i) {
- stream >> array[ i][j]; // Leerzeichen vor dem i als Workaround
- stream >> array[j]; // nochmal die gleiche Zeile....das i verschwindet
- }
- ++j;
- }
- stream.close();