This is a test, just for learning...
I changed it to:
void EFernal_ReadFile (char *nome)
{
FILE *fp = NULL;
if (fopen_s(&fp, nome, "r") != 0)
{
sds_alert(L"Erro:\n\n\n\tNão foi possível abrir o arquivo para leitura...");
sds_retvoid();
return;
}
char linha[255] = "";
while(!feof(fp))
{
fgets(linha, 254, fp);
if((strlen(linha) > 5) && (linha[0] != ';'))
{
sds_alert(CA2W(linha));
}
}
fclose(fp);
sds_retvoid();
}
it's working...
is this correct?
thanks for your help...