Author Topic: Write to file not working  (Read 50 times)

Offline pjop

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Write to file not working
« on: August 01, 2017, 02:52:51 am »
Hi,

I'm trying to execute this code snippet and it doesn't work.

local file = io.open("/www/tmp.txt", "a+")
file:write(?Some text...?)
file:close()

The file tmp.txt exists in the root/www/ folder.

Any ideas?

Cheers,