Writting multiple files into a folder and reading all the files in a folder
I only know fstream and fprintf, both of which need a prenamed file or directory.
What I want to do is write multiple files, i.e. 001.txt, 002.txt.
i would assume that this involves something like:
Code:
for(int o = 0; o < 100; o++)
{
cout << o << ".txt";
}
Also something that would read everything from a dynamic folder
i.e.
Code:
char directory[100];
strcpy(directory, "12345")
and that would open/write a directory (C:\\1\2\3\4\5)
Hope that made sense :S
Would appreciate someone pointing me to the right direction :) Thanks!