#include <cstdlib>
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <cstring>
using namespace std;
int main(int argc, char *argv[])
{
fstream filestr;
for (int i=1; i<=17771;i++)
filestr.open ("mv_0000001.txt", fstream::in | fstream::out | fstream::app);
filestr.close();
system("PAUSE");
return EXIT_SUCCESS;
}
guys i m trying to create multiple text files to the designated folder using fstream...i have managed to create one file at a time...but i want it to create multiple files for eg - from mv_0000001 ...mv_0000002..mv_0000003......to mv_017771...if u guys can help me out i would appreciate it..thanks a lot