This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CptBlank's profile picture

eof expected (I wrote code on disk not in startup)

Started by CptBlank, 11 March 2014 - 11:09 AM
CptBlank #1
Posted 11 March 2014 - 12:09 PM
eof expected again

so i made my computer (advanced) with creative mode
i typed in dir then mkdir apps
then cd apps
edit Application2

then wrote

print ("Random TExtHere")

end

i get error:bios:339 [string Application2] :4: ,<eof>, expected


anyone can help im developing an Operating System
Lyqyd #2
Posted 11 March 2014 - 02:27 PM
You only need an end to close a block of code (except repeat blocks), so remove the end statement. You might find some Lua tutorials or documentation on blocks/chunks of code helpful.
CptBlank #3
Posted 11 March 2014 - 04:17 PM
Ah thanks it works