Hi,
I am trying to make some sort of music-library program with C++. But now I have this pretty stupid question.
I want to read every id3-tag in a directory. So that means I need to loop recursively trough all of the files. But how would I do that?
Basically I need something like:
Code:
string filename;
loop {
filename = next_file();
// do something with the file
}
I was wandering to just do: ls >> file
And then readout the output line by line, but this seems to be very hard, at least harder than it should be.