lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> local file = io.open ('/var/tmp/myfile.txt',w)

The file does not exist and you have opened if for reading.

Try
  local file = io.open ('/var/tmp/myfile.txt',"w")