#include #include /* This extracts ID, title, album, artist from gnupod database on my computer, the ipod is mounted on /media/ipod, so you may have the change this */ FILE *in; main() { char big[2048]; in=fopen("/media/ipod/iPod_Control/.gnupod/GNUtunesDB.xml","r"); while(!feof(in)){ fgets(big,2048,in); isfile(big); } fclose(in); } int isfile(char *s) { int n=strlen(s); char *z,c; int i,j; char name[256],id[256],title[256],album[256]; z=strstr(s,"