in reply to Re: Re: File I/O
in thread File I/O
I meant fixed length in the mainframe sense of records addressable (directly and only) by record number.
Fixed length records on PC's are (for the most part) only variable length bits of a stream that all happen (even by design) to be the same length. There is nothing to stop you from positioning the pointer to mid record before reading or writing, and completely corrupting the record structure in the process.
What's the reason for you frowny? Assuming your fixed-length records are delimited with newlines, you can just as easily process them as you would variable length records with the added bonus of being able to index you way directly to a given record. Even if they are not delimited, setting $/ = \80; or whatever the fixed length is, allows you to read them just as easily.
I don't see the problem?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: File I/O
by demerphq (Chancellor) on Sep 23, 2003 at 23:20 UTC | |
by BrowserUk (Patriarch) on Sep 23, 2003 at 23:35 UTC | |
by jonadab (Parson) on Sep 23, 2003 at 23:59 UTC | |
by demerphq (Chancellor) on Sep 24, 2003 at 07:45 UTC | |
by demerphq (Chancellor) on Sep 24, 2003 at 00:12 UTC | |
by BrowserUk (Patriarch) on Sep 24, 2003 at 06:10 UTC |