G
gribouille
Hi,
via fgets() i create a array containing a text file.
fp = fopen(argv[1], "r");
while ((c = fgetc(fp)) != EOF) {
line[l] = c;
when i want to print it
while (i < w){
//printf("%c", bodytext);
i++;
}
it works, but if i intergrate a if(line=='\\') {...}
it print me some funny caracteres in the text
what happened ?
via fgets() i create a array containing a text file.
fp = fopen(argv[1], "r");
while ((c = fgetc(fp)) != EOF) {
line[l] = c;
when i want to print it
while (i < w){
//printf("%c", bodytext);
i++;
}
it works, but if i intergrate a if(line=='\\') {...}
it print me some funny caracteres in the text
what happened ?