> > if ((cnt = recv(desc_archivoDatos, line , sizeof(line), 0)) > 1) > { > cnt = recv(desc_archivoDatos, line , sizeof(line) , 0 ); > fprintf(stderr,line); > } I think here you should strip any carriage return / newline characters from your line before checking wether it's empty or not? Cheers, Jean-Michel.