Best Way To Work With FileSystems? [closed]
-
03-12-2019 - |
سؤال
What's the best way to work with file systems in C?
There is of course dirent.h , but from what I've heard it isn't completely guaranteed to be available on all platforms and compilers, for example the Microsoft Visual C++ compiler, for one, doesn't support it.
For now, the best thing I've seen is the file handling functions in GLib. Is there any better way?
What I am looking for is a well-designed, preferably cross-platform library / code / something else supported by all main-stream compilers and is well-documented. Any ideas?
المحلول
I recently posted an answer about cross-platform socket libraries, but it's equally good for your question:
- GLib comes with file utilities
- libuv provides file system methods
- APR has directory manipulation functions
- NSPR exposes directory i/o functions
لا تنتمي إلى StackOverflow