Access Dynamic path/folder with ios:ofstream
For Making long description short see my case:
So how can i access this dynamic path for writing in test.txt file.
my code: ofstream fout("../defult123/test.txt",ios::out);
Here in "defult123", "default" is static but "123" is dynamic .So Basically
path should be written as: "../default***/test.txt"
please be a help....
so should be working ??
or,do i have to list directory fist then check for folder named "default" in sub folder? if so then how do i do that?