How can i create a function in C++ that reads into three dynamically (not statically sized) sized vectors?.I have been searching the web for hours and I couldn't find any good example.
my file contains the following values:
Um, line 31 closes the file. So you can't read anymore from it.
Further more you can't read past the end of the line with inFile >> .... You need std::getline(inFile, line);. Pass that 'line' to a stringstream and read the values from that stringstream