KOXISA
April 1, 2019, 5:03pm
1
Hello everybody! I’m trying to save my highscore but i see error File error: C:\Users\romlu\AppData\Local\Corona Labs\Corona Simulator\Sandbox\stand out-5004F908333A8F9EE4A9B4F8532E8EA1\Documents\highscore.json: No such file or directory
I just open the file and trying to write information in it and read the content but i see this error. Help me please.
This is a part of my code.
https://paste.ofcode.org/yFR7MNnFpT3rWUPufbZDzp
mjako
April 1, 2019, 6:33pm
2
Hello, you must open the file with “w” parameter until you want to write to the file:
local file, errorString = io.open( path, "w" )
Hi
KOXISA
April 2, 2019, 6:13am
3
But if i want to get highscore from file and i have the same error as i am trying to write the file - file not found
If you’re interested, my Puggle library makes saving data such as high scores very easy:
https://www.grahamranson.com/saving-high-scores-with-puggle/
KOXISA
April 2, 2019, 6:13pm
5
Thanks, your library is very useful, it really helped me!
mjako
April 1, 2019, 6:33pm
7
Hello, you must open the file with “w” parameter until you want to write to the file:
local file, errorString = io.open( path, "w" )
Hi
KOXISA
April 2, 2019, 6:13am
8
But if i want to get highscore from file and i have the same error as i am trying to write the file - file not found
If you’re interested, my Puggle library makes saving data such as high scores very easy:
https://www.grahamranson.com/saving-high-scores-with-puggle/
KOXISA
April 2, 2019, 6:13pm
10
Thanks, your library is very useful, it really helped me!