Books and other Resources for programming FileInfo and Disk.IO in C++

Mr_Fulano
Mr_Fulano used Ask the Experts™
on
Hello, I'm rather new to C++.  I've been viewing a lot of video training courses to help me learn the syntax, but once I pick that up, I'm off to writing a specific program that I'd like to develop.

I would like to ask whether anyone here knows of any books, PDF, articles or reference material that would help me understand how to use C++ for FileInfo and Disk.IO programming.

I need to develop code that can analyze a hard drive and provide me technical information about that hard drive and about the O/S (i.e. number of sectors, block size, file dates, etc.).

I would need this material to be somewhat specific to the topics I specified above. I'm not looking for a C++ primer for simple coding tasks, I'm looking for something specific for FileInfo and Disk.IO programming.

Thank you for your help,
Fulano
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Eduard GherguArchitect - Coder - Mentor

Commented:
Hi,
What operating system do you have in mind to develop for?

Author

Commented:
Hello Eduard, the operating system I'm aiming for initially is MS Windows. Later on, I'd like to explore Max OS, but for now Windows is my first choice. That said, if you have anything for any OS, which would point me in the right direction, I would greatly appreciate your help.

Thank you,
Fulano
Architect - Coder - Mentor
Commented:
Hi,
Can you have a look to Boost to see if it fits your needs?
https://theboostcpplibraries.com/boost.filesystem-files-and-directories
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

masheikSoftware Engineer

Commented:
For windows the MSDN provides more info and how to use also few code samples
http://www.cplusplus.com/forum/windows/12196/
https://docs.microsoft.com/en-us/windows/win32/fileio/basic-and-dynamic-disks?redirectedfrom=MSDN

Search in MSDN , you will get more resources.

Author

Commented:
Hi Eduard, the Boost libraries do seem to give me a lot of what I'm looking for, but is Boost a native library in C++ or is it a library that I need to add to C++ to get the functionality?

The reason I ask is that for something like Status, you'd have to declare:

Using boost::filesystem::status()

So, I would assume I'd be adding #include <Boost> or something similar?

Author

Commented:
Hi Masheik, The first link is interesting, but I've always thought that Microsoft makes their Documentation, so cryptic. They provide partial code, without any good example. I use the MS documentation as a last resort.
Eduard GherguArchitect - Coder - Mentor

Commented:
Hi,
Boost is an external set of libraries, even though part of them were included in the standard library like filesystem, for example:
https://en.cppreference.com/w/cpp/experimental/fs
https://docs.microsoft.com/en-us/cpp/standard-library/filesystem?view=vs-2019

Author

Commented:
Thank you Eduard, I think you gave me a good start on where I need to go next. Thanks!
Eduard GherguArchitect - Coder - Mentor

Commented:
Hi!
My pleasure! If you need more help, please, let me know!

Author

Commented:
Thank you to all who contributed. Very good suggestions.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial