I wrote small proggy..and I dunno why it doesnt work...can you help me?
#include <string.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
#include <cstdlib>
#include <sstream>
#include <iostream>
using namespace std;
int main()
{
string option[] = {"option1.txt","option2.txt","option3.txt","option4.txt"};
string token;
string filename_token;
string line,filename,filename1,c0,c1,c2,c3,c4,c5,c6;
int i=4;
int n;
ofstream result ("raport.csv");
for(n=0; n<i+1 ; n++)
{
cout << option[n];
filename1==option[n];
ifstream pliczek (filename1.c_str()); //otwieramy wszystkie pliki
while (! pliczek.eof())
{
getline (pliczek,line);
result << line << ";";
cout << line << endl;
}
result << endl;
}
}
THX in advance!