Another possible approach...
Code:
#include <stdio.h>
int main(void)
{
static const char filename[] = "file.txt";
FILE *file = fopen(filename, "r");
if ( file != NULL )
{
int ch;
while ( (ch = getc(file)) != EOF )
{
if ( ch == ')' )
{
do {
ch = getc(file);
if ( ch == EOF )
{
goto done;
}
putchar(ch);
} while ( ch != '\n' );
}
}
done:
fclose(file);
}
else
{
perror(filename);
}
return 0;
}
/* file.txt
[playlist]
numberofentries=3
File1=http://64.236.34.97:80/stream/1065
Title1=(#1 - 871/18508) D I G I T A L L Y - I M P O R T E D - Vocal Trance - a fusion of trance, dance, and chilling vocals
Length1=-1
File2=http://64.236.34.67:80/stream/1065
Title2=(#2 - 719/14952) D I G I T A L L Y - I M P O R T E D - Vocal Trance - a fusion of trance, dance, and chilling vocals
Length2=-1
File3=http://64.236.34.4:80/stream/1065
Title3=(#3 - 842/16389) D I G I T A L L Y - I M P O R T E D - Vocal Trance - a fusion of trance, dance, and chilling vocals
Length3=-1
Version=2
*/
/* my output
D I G I T A L L Y - I M P O R T E D - Vocal Trance - a fusion of trance, dance, and chilling vocals
D I G I T A L L Y - I M P O R T E D - Vocal Trance - a fusion of trance, dance, and chilling vocals
D I G I T A L L Y - I M P O R T E D - Vocal Trance - a fusion of trance, dance, and chilling vocals
*/