title: turning a string from a text file back into an array
body: <p>So I am making a dice game, and one thing I wanted to do was have a high scores list as a text file. Currently I have a function that can change the file if the score of the player is in the top 5. This currently works with an array, which gets sent to the text file as a string. I want to be able to read this and convert it into an array again so I can compare values if I want to try and beat the score for another time, yet I cant seem to get it back into an array. This is what I get from using .split(&quot;,&quot;): ['[37', ' 0', ' 0', ' 0', ' 0]'], and this is what is inside the text file: [37, 0, 0, 0, 0]. Keep in mind I am in year 9, so I do not mind if the code is long, I just want it to work.</p>