[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: read error
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 8 Nov 2011 13:12:02 -0200
> On 8 November 2011 15:48, Roberto Ierusalimschy <firstname.lastname@example.org> 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?
It is a nice idea, but it fails the "automatic" part.