Re: reading 2 numbers, one following the other
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: reading 2 numbers, one following the other
- From: Pedro Martelletto <pbastos@...>
- Date: 2003年12月17日 21:03:41 -0200
On Wed, Dec 17, 2003 at 08:44:41PM -0200, Luiz Henrique de Figueiredo wrote:
> Try tonumber(file:read(2)) and tonumber(file:read(3))...
> --lhf
works like a charm. i didn't know you could explicitly call tonumber()
from lua... anyway, auto-conversion should work as well. many thanks.
cheers,
-p.