S
slyphiad
i'm kinda new at c++ so be patient ^_^
i was just wondering if u guys could help me to solve this problem
that i had.
i'm trying to create 5 sequential files using ofstream.
this is what i did below:
char filename[][13] =
{"quest.01.cpp","quest.02.cpp","quest.03.cpp","quest.04.cpp","quest.05.cpp"};
ofstream out(&filename);
i've tried other stuff too but it doesnt seem too work.
the only time, i can create file is when i do:
ofstream out("quest.01.cpp");
but this is so inefficient. i dont want to create 5 ofstream for to
create 5 sequential files. is there anyway that i could solve this
problem?
Thanks...
i was just wondering if u guys could help me to solve this problem
that i had.
i'm trying to create 5 sequential files using ofstream.
this is what i did below:
char filename[][13] =
{"quest.01.cpp","quest.02.cpp","quest.03.cpp","quest.04.cpp","quest.05.cpp"};
ofstream out(&filename);
i've tried other stuff too but it doesnt seem too work.
the only time, i can create file is when i do:
ofstream out("quest.01.cpp");
but this is so inefficient. i dont want to create 5 ofstream for to
create 5 sequential files. is there anyway that i could solve this
problem?
Thanks...