Hi Guys, i think im doing some mistake in my code, however im not being able to see it.
Im simply trying to save a structure to a text file, altough i check the return value of fwrite, the file is empty when i next look at it heres is part my code:
if((fp = fopen("ngram.txt", "w+")) == NULL)
printf("O arquivo nao pode ser aberto\n");
Thanks in advance for any help.
printf("error when writting the file");