title: How do I read system information in C++?
body: <p>I'm trying to get information like OS version, hard disk space, disk space available, and installed RAM on a Linux system in C++.  I know I can use <code>system()</code> to run different Linux commands and capture their output (which is what I'm currently doing) but I was wondering if there's a better way?  Is there something in the C++ standard library that I can use to get information from the operating system?</p>