0
Guys, I need to search for a value found by a rand
in a file, I’m having a lot of problems because the rand
returns me an integer and to fetch character in a file the fgetc
me returns an integer corresponding to the ASCII of the character. I am unable to convert the integer to its ASCII value or convert the found ASCII number to char.
Can anyone give me a light? Thank you
Show what you’ve done and indicate where the problem is.
– Maniero
tried to use fscanf ?
– Felipe