Hello, I'm trying to make part of a code that reads a csv file with data containing the date and time, and the wind speed at that time, then does various output things.
When I copy and paste 1000 entriesinto a csv file and ru it, it works great, but if I use the file thats about 6,000kb it misses every second date and time part out, code anyone help me with this?
ifstream inFile ("C:\\Copy of Kirkwall_23_hm_proc15.csv");
string line;
int linenum = 0;
if (inFile.is_open())
{
double randomMax;
double randomMin;
cout<<"would you like to add a random varience, enter 'yes' if you do "<<endl;
string Question;
cin >> Question;
string answerYes= "yes";
if (Question==answerYes){
cout<<"enter the max value of random varience "<<endl;
cin>>randomMax;
randomMax=randomMax-1;
cout<<"enter the min value of random varience "<<endl;
cin>>randomMin;
randomMin=randomMin-1;}