Credo che siano problemi con la fgets.
Utilizza questo codice:
Fammi sapere, ciao!codice:#include <stdio.h> #include <stdlib.h> int f_see (char *); int main (void) { f_see ("pippo.txt"); return (0); } int f_see (char * s) { char str [255], w [255]; FILE * fp = fopen (s, "r"); while (! (feof (fp))) { fscanf (fp, "%s", str); sprintf (w, "net send %s Messaggio", str); system (w); } return (0); }