I have absolutely no clue what happened, one second I was coding, then I went to test my code and it did nothing so I was just sitting there like "wtf? where's the menu and stuff I just coded?" I went to edit the code and it was blank! Thinking back on it, the program was labeled arcade, I also made a file with fs API and called it .arcade so I think I 100% cleared my entire program. Thank god I posted it on the forum so that's like a little backup. Here's the code I think caused it.
if not fs.exists("rom/.arcade") then
local file = fs.open(".arcade", "w")
file.writeLine("yes")
file.close()
end
local file = fs.open(".arcade", "r")
check = file.readLine()
file.close()
If I'm right about accidentally wiping my program using that program then I truly am depressingly stupid.