سؤال

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:

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top