Hola a todos, necesito hacer un programa simple que lea los datos de un fichero html, en concreto una tabla. Por ejemplo, en el fichero tengo.
<table>
<tr>
<td> Nombre 1 </td>
<td> Nombre 2 </td>
<td> Nombre 3 </td>
</tr>
</table>
Y me gustaria que saliera asi:
Nombre 1
Nombre 2
Nombre 3
No se como seguir =S
De momento tengo esto:
Código C:
Ver original#include <stdio.h>
#include <stdlib.h>
void main(){
FILE *archivo;
char c[250];
int i, flag=0;
if ((archivo
=fopen("index.html","r"))==NULL
){ perror("Error al abrir el fichero"); }
for(i=0; i<20; i++){
}
}
}
Gracias!!!!