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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,953 posts
since Aug 2005