i am trying to make a program, that makes the directory "%appdata%", and then edit a file called "saves.daT", but!
the first time i started the program it works fine. but the second time (when the "saves.daT" already exists, it does not show the "Lollypop1" sign.)
the code is here..
function makeDir() fs.makeDir("%appdata%") if not fs.exists("%appdata%/saves.daT") then -- when this path dosent exist, it works fine, but... -- h = fs.open("%appdata%/saves.daT", "w") h.write("Lollypop") h.close() elseif fs.exists("%appdata%/saves.daT") then -- when the path Does exists, it does not read the "%appdata%/saves.daT" file.... Why? h.readAll("Lollypop1") h.close() end end makeDir()
- Mikk809h
if anyone could help me, i will be very happy....
Thanks