In function cmdReadValues_Click() check that file_length > 0. The file in your zip is an empty file.
Otherwise, I don't see any problems with that program. Just make sure you click the Write button first to generate the file.
Ancient Dragon
Retired & Loving It
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343