#include #include #include #include #include using namespace std; int main(int argc, char** argv) { ifstream iflist; ofstream oflist; iflist.open(argv[1]); oflist.open(argv[2]); if(iflist.is_open() && oflist.is_open()) { string filename; while(!iflist.eof()) { getline(iflist, filename); TagLib::FileRef f(filename.c_str()); if(f.isNull()) break; oflist << f.tag()->artist() << " - "; oflist << f.tag()->album() << " - "; oflist << f.tag()->title() << "\n"; } iflist.close(); oflist.close(); } else { cout << "LOLWUT?"; } return 0; }