string filePath = path + FindData.cFileName;
ifstream in( filePath.c_str() );
if( in )
{
fstream myfile;
myfile.open (filePath.c_str());//, ios::out | ios::app
//CopyFile(filePath.c_str(),transfer,true);
// Copyfile((filePath.c_str()),"AllLITTs.txt", TRUE);//,makes it false? right//FALSE?
fstream OuT;
OuT.open("AllLit.txt", ios::out |ios::app);
OuT<<myfile;//transfer
OuT.close();
myfile.close();
cout << "successfully transferred" << FindData.cFileName << "\n";
im gunna mess with it some more when i get out of class, if you see anything thats uproariously wrong with this or know how to do it correctly, leave a comment. you guys rock thanks for the help so far!

New Topic/Question
Reply





MultiQuote



|