lua-users home
lua-l archive

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


On Fri, 18 Feb 2011 15:01:52 -0200, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> Try
>>   local file = io.open ('/var/tmp/myfile.txt',"w")
>
>Better yet:
>
>    local file = assert(io.open ('/var/tmp/myfile.txt',"w"))

Thanks Roberto.