Comparing data inside SD card with user Input

As the file extension is txt, I guess that the data in there is ascii.
User entries are usually text as well.

If you want to compare text, you can use strcmp.

If one of them is not text, you can convert the text to a number using strtoul