Anyhelp with the ostringstream and datastream line would be appreciated. Can't seem to get the data to actually write to the text file...No data in results.txt, but the file is created by the program when I run it...
ofstream DataFile3("results.txt");
cout<<"Writing...Please wait...."<<endl;
for (a=0; a<Search.size(); a++) {
cout<<Search[a].date<<" "<<Search[a].time<<" "<<Search[a].wind_obs<<" "<<Search[a].wind_sensor<<endl;
ostringstream Outgoing(DataStream3);
Outgoing << Search[a].date << Search[a].time << Search[a].wind_obs <<Search[a].wind_sensor<<endl;