I need to find a value found by a rand
in a file, I'm having a lot of problems because rand
returns an integer and to search for a character in a file, the fgetc
returns an integer corresponding to the ASCII of the character. I'm not even able to convert the integer to its ASCII value and nor convert the found ASCII number to char.
Can anyone give me a light? Thanks