Ok, I found out that you cant create directories with iostream.
I found the class QDir, but I dont know how to create a directory...
I tried it with:
Qt Code:
if (!Dir->exists()) { Dir->mkdir("../logs/"); }To copy to clipboard, switch view to plain text mode
And with Dir->mkdir("logs"); , ... and so on. But a directory was never created.
How to do this???
The directory should be created in the same directory where my applications runs.
Bookmarks