Ok, I'm trying to iterate through all files in a directory to be used as arguments for another program. Trouble is, I am only getting the first letter of all the files in the directory, not name of the file. I am in Linux, so I pipe the command ls -1, to get directory listing line by line, into a text file, then read it. My fscanf must be wrong?
I will look into opendir. I had seen the boost.Filesystem, but did not want to use it since it is not yet part of the standard C++ library. Thanks for your help.