in reply to File Reading (.CHR file)
Your code is syntactically correct.
You need to try out the suggestions made to you in the first comment posted by toolic.
Hope this helps.