Daved,
That worked out really great... thanks for that.
Now when I am trying to do an if-statement like this, I have no compile success, though:
If Close == 35.23, where 35.23 is an integer. What could this depend on:
Code:
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
using namespace std;
int main ()
{
std::string Date;
int Time = 0;
char Comma;
double Close = 0;
ofstream Test;
Test.open ("file2.txt");
ifstream myfile ("file1.txt");
ifstream file0 ("file0.txt");
getline(myfile, Date, ',');
myfile >> Time;
myfile >> Comma; //char Comma;
myfile >> Close;
If (Close == 35.23)
{
Test << Close <<"\n";
return 0;
}
}