#include <iostream>
#include <fstream>
#include <cmath>
#include <string>
using namespace std;
int main()
{
    string zeile;
    ifstream file;
    file.open("zahlen.txt");
    int array[3][8];
    int i = 0;
    int u = 0;
    while (file) {
        file >> u;
        array[i] = u;
        i++;
    }
    int f = 0;
    while (f <= 7) {
        cout << array[f];
        f++;
    }
    return 0;
}
0 0 0 0 1 1 0 1
0 0 0 1 0 0 1 1
1 1 0 1 0 1 1 0We tried to read the txt file with the numbers and to store the numbers in an array. The array should contain 3 8 bit long sequences We also have issues reading the second and third line in the file.
 
     
    