Write filesystem-dependent code in c++ -


how can write filesystem-dependent code in c++? writing user level library should handle files in different ways depending on features in underlying filesystem, how can figure out?

for example, there defined preprocessor directives expose filesystem?

on windows, can use getvolumeinformation function. on linux , osx (and bsd!), can use statfs function.


Comments