To read the file stream and write to a two-dimensional array?

Have the source text file input.txt you need a thread to read all the contents of the file and throw in a two-dimensional array. I tried to do so but I have only read the first line
char line [5][20];
int count=0;
fstream fIn;
fIn.open("input.txt",ios::in);

while(fIn.getline(line[count],20))
count++;
March 19th 20 at 09:06
0 answer

Find more questions by tags C++