A while back I created a very simple shell script that basicly (together with a few other things) compiles all the .java files in a directory. Now I want to re-write this shell script in C. This means I'll work with files, and I need to find a way to retrieve the files' name, size etc. Is there a simple way to do this? - Other than forking a lot of UNIX commands..
Oh, and I haven't found a simple way to get information with fork(), just run UNIX commands and pass/get arguments, which isn't quite the same.
Help and advice appreciated.