Implement the readLog function below, which is to (1) read the file, (2) populate a vector for each column, and (3) return the number of lines found.
The log file is of unknown length so red until the end of file is reached.
#include
#include
#include
#include
#include
using namespace std;
int readLog( string filename, vector& t, vector& P0, vector& T0, vector& M )
{
insert function here
}
int main()
{
vector t, P0, T0, M;
int points = readLog("log.txt", t, P0, T0, M);
cout << points << "lines read:" << endl;
return 0;
}