From: Paul G. <pa...@pa...> - 2004-12-31 23:14:34
|
Hi > Jason Benjamin wrote: >> I've heard that this sort of thing is very compiler/OS specific... > > Correct. Directory and file handling functions are specific to the > operating system. The C/C++ libraries provide the means to open and > read/write files, but that is about it. Renaming and moving files, > creating directories, etc. requires either OS-specific API calls or making > system calls to stuff like "rm" or "mv". > > I searched Sourceforge and could not find a library that handles this. You > may want to write a module that uses conditional compilation to provide a > common interface but OS-specific functions on the back-end. That or use > Perl if possible. If you want cross-platform and you're prepared to go to C++ then I believe the boost (www.boost.org) file library will do what you want. Regards Paul Paul Grenyer email: pa...@pa... web: http://www.paulgrenyer.co.uk Elephant: http://www.paulgrenyer.dyndns.org/elephant/ Darrell "Dimebag" Abbott will be sorely missed. |