Today's issue? I want to create a file that is a working program. So I'm trying to insert lines like:
if answer == "yes" then
print("maybe")
else
print("probably not")
end
fs.writeLine and fs.write seem ok with inputting data values
fs.writeLine(themagicnumber)
fs.writeLine("The magic words")
but how can I write to file the first code since it has quotations in it already?It expects a ) after the " so I only get as far as the first variable.
If I were not setting up commands that REQUIRE quotes it wouldn't be so bad.
For my purposes I could bypass this by using fs.move to rename the file and adding some variables somehow, but I don't see a way for a program to get it's own name, and I cna't assume people would not rename it when (more like if) downloading.
Also, I found this thread which is helpful for those learning file manipulation. It didn't have an answer and was old so I made a new one.