C IO with hard drive

I would like to know if there is any type of portable (Mac and Windows) way to read and write hard drives beyond iostream.h, especially to get a list of all files in a folder, Move files, wait

I hope there will be something similar to SDL around, but I haven’t found much so far.

Any ideas? ?

There is no native C method to traverse the directory structure or list the files in the directory in a cross-platform manner. It’s just not built into the language. (For good reasons!)

Your best choice is to use a code framework, and there are many good choices.

Boost Filesystem

Apache Portable Runtime

Aaaand my favorite-Qt

Although, if you use it, it is difficult to use only the file system part of it. You almost The entire application must be ported to a Qt specific class.

I would like to know if there is any type of portable (Mac and Windows) method of reading and writing hard drives beyond iostream.h, especially to get a list of all files in the folder, move files, etc.

I hope there will be something similar to SDL around, but so far I haven’t found much Stuff.

Any ideas? ?

There is no native C method to traverse the directory structure or list the files in the directory in a cross-platform manner. It is just not built into the language. (There are good reasons !)

Your best choice is to use a code framework, and there are many good choices.

Boost Filesystem

Apache Portable Runtime

p>

My favorite of Aaaand-Qt

Although, if you use it, it is difficult to use only the file system part of it. You almost have to port the entire application to a Qt specific class.< /p>

Leave a Comment

Your email address will not be published.