All pastes #745167 Raw Edit

m3u2txt

public cpp v1 · immutable
#745167 ·published 2007-10-22 03:18 UTC
rendered paste body
#include <iostream>#include <fstream>#include <taglib/taglib.h>#include <taglib/tag.h>#include <taglib/fileref.h>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;}