in reply to Re^2: Generating a readline error
in thread Generating a readline error
My seek idea didn't work as seek past EOF is not an error (that's how to generate "sparse files"). I've tested that on Perl before (*nix and even XP) and it works fine and you just get EOF if you read something like that. Of course EOF is not an error. And of course a write past EOF is completely legal and produces no error.
I've written device drivers that will pass back "known bad data" from say disk system. But that's a special thing and drivers,O/S,app have to know what's going on. That sort of thing is used in huge volume data applications where say 12 bits wrong won't matter in say a video image or a seismic data app.
Still curious as to what kind of data recovery is possible in typ Perl app after "bad data" from an I/O device?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Generating a readline error
by ikegami (Patriarch) on Jul 17, 2009 at 18:58 UTC |