Answer the question
In order to leave comments, you need to log in
How to read an entire line from a file into an array?
Good evening, how to read a whole line into an array from a file?
fin >> x;
string* arr = new string[x];
for (int i = 0; i < x; i++) {
fin >> arr[i];
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question