C++ file manipulation library?
I'm using straight Linux g++ (version 3.something, I believe) and I just need a simple file handling library. For example, if on the command-line, someone enters in ../my/dir/foo.txt I want to be able to strip the directory part and the file name part. That's actually the biggest thing, but anything else that will help with handling files would be cool.
The reason is I have this project that takes input files, and I put them in a centralized directory for cleanlieness. But then I write about 3 files based in the input filename. So based on foo.txt, I write foo.1.csv and foo.1.dot or whatever, but if I just use the filename and append, you can see how they get written to the old directory. Again, for cleanliness, it would be nice to stick them in their own dirs.