Hi , welcome to Microsoft Q&A!
I used your code for testing and the same error did not occur.
Please check your file name to see if it is values.txt not values.text
Best Regards.
Jiachen Li
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.