Error with file I/O system tasks($feof,$fscanf)

In reply to dave_59:

The file is successfully opening.

x value printing as 2.