Question

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?

Was it helpful?

Solution

I recently posted an answer about cross-platform socket libraries, but it's equally good for your question:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top