Hi!
I need to be able to create and delete folders from my program. But I can't find out how to do this. For UNIX, and also Linux I suppose, there should be some function like mkdir... But I can't find anything about it. And the home directory, how do I find it?
Since my program is supposed to work on UNIX, Linux, Windows and MacOS I need to know how to do this on all those operating systems. How is the best way to implement it to compile the right creation function depending on which operating systems the compilation is made on?
Some kind of macro maybe? Like:
Qt Code:
#if WIN32 void createWindowsFolder(); #endif #if LINUX void mkdir #endif #if MACOS void mkdir()? #endifTo copy to clipboard, switch view to plain text mode
thanks for reading
pir
Bookmarks