#include <stdio.h>
int main(){
char DATOS;
FILE *fichero;
if (!(fichero = fopen("http://www.google.com","r"))){
printf("abrio...\n");
while (feof(fichero) == 0){
DATOS = fgetc(fichero);
printf("%c",DATOS);
}
fclose(fichero);
}else{
printf("Error... \n");
return 1;
}
return 0;
}
Bueno No se si se podrá, me da un error pero si me abre el fichero jeje... porque no puedo leerlo, si lo puedo abrir ??
Si vas a abrir una rchivo de internet nesesitas usar Sockets y el protocolo http...
* En Windows existen las apis INET que te facilitan todo esto...
Dulces Lunas!¡.
Gracias.. investigare sobre sockets :rolleyes: :rolleyes: , aunque ya se muchas cosas, y sobre el protocolo de internet :D suerte gracias !