Re: How to write fixed length records to file.
- From: "Larry Serflaten" <serflaten@xxxxxxxxxxxxxx>
- Date: Mon, 7 Jul 2008 13:56:05 -0500
"Steve Gerrard" <mynamehere@xxxxxxxxxxx> wrote
The pattern is AAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBB
I simply can't imagine ANY programmer would write a file like that<...>
without including some means of determining where the break is.
I'd suggest you look hi and low for an indication of how the
program is supposed to know where the break is, unless (which
may be unlikely) the file itself is always a constant size, and always
containing the exact same layout of records....
It would not be so difficult to establish that an A pattern filled entirely
with 0's, for instance, was to be taken as the last A record, to be
followed by the first B record, or something like that.
That would be one method to determine where the break is, but it is
not very sensable. It would force the reading of each individual record
in the first section before any of the second section could be accessed.
That means, no array and grabbing the lot in one go on that first section.
LFS
.
- References:
- How to write fixed length records to file.
- From: Jim
- Re: How to write fixed length records to file.
- From: Larry Serflaten
- Re: How to write fixed length records to file.
- From: Jim
- Re: How to write fixed length records to file.
- From: Larry Serflaten
- Re: How to write fixed length records to file.
- From: Steve Gerrard
- How to write fixed length records to file.
- Prev by Date: Re: On Error Resume Next Won't. Actually, It Will. ;-)
- Next by Date: Re: On Error Resume Next Won't. Actually, It Will. ;-)
- Previous by thread: Re: How to write fixed length records to file.
- Next by thread: Automatic Login using Visual Basic or Batch script
- Index(es):
Relevant Pages
|