lua-users home
lua-l archive

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


On 8 November 2011 15:48, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> I am trying to test errors in read operations (io.read - io.line). Does
> anyone know a reliable/automatic way to generate a read error on
> Linux?

Open a file on a USB pendrive and unplug the pendrive before it reads?

    M