Hmm, trying to provide constructive criticism.

Do you really need to read and write the files every second? A project where its only purpose is to open/read simple files doesn't seem like it's worthy of a 4-year coder?

As far as the code itself: What if the user has no write permissions to the root drive? Is that best place to write such a file? Not really sure of the purpose of the code. You are writing to one file, but reading another different file. Maybe an explanation is needed?

Tip: Surround your code in [code] tags for better viewing within these forums.