We have moved at community.getvera.com

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

Offline pjop

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

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...?)

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

Any ideas?