I am looking for a way to gather information about a given file/directory using C++ in linux. Essentially, I want to emulate at least some of the functionality of the File object in Java. I'd like to limit the amount of system() calls to a minimum (0 preferred).

Little background: I'm making a file browser and I'd like to be able to get information about a file other than its name.