dynamically create folders with QT
Hey you guys.
Is it possible to create folder's during runtime (what I mean is that the program creates folders inside the current directory (so basically they are sub-folders) based on the current date).
Let's say it's 22.10.2005 today. And the program would create a sub-folder with a name 22.10.2005 inside the current directory.
Is that possible...
Any hints are appreciated.
Re: dynamically create folders with QT
Yes, of course it is possible. QDir::mkdir() or QDir::mkpath() are the way to go.
Re: dynamically create folders with QT
Hey. Thanks for your reply.
Can you tell me one more thing. Why does this code not work:
Code:
void MojeOkno::vpisiVpisaneVrednosti() {
out << "Let's see if it works." << endl;
file.close();
}
It does not save the string in test.text.
Re: dynamically create folders with QT
you forgot to open the file:
Code:
void MojeOkno::vpisiVpisaneVrednosti() {
out << "Let's see if it works." << endl;
file.close();
}