Re: How to write fixed length records to file.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"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


.



Relevant Pages

  • Re: Word 2007 - view settings
    ... I mentioned it in case Malis was confusing Reading ... Layout with Print Layout. ... document without a lot of 'distractions' in Print Layout view. ... Microsoft MVP >> ...
    (microsoft.public.word.docmanagement)
  • Re: Document property to stop reading layout
    ... views or suggest that they disable "Allow starting in Reading ... Layout" on the General tab of Tools | Options. ... Word MVP FAQ site: http://word.mvps.org ... > to reading layout when being opened from an email message. ...
    (microsoft.public.word.pagelayout)
  • Re: TOC - Page #formatting reverts to all 1s when doc is attachd to e
    ... This usually results from the recipient's opening the document in Reading ... Suggest that the recipient disable Reading Layout view. ... Suggest that the recipient update the TOC after opening, ...
    (microsoft.public.word.tables)
  • Re: TOC
    ... This happens if the recipient opens the document in Reading Layout (Onscreen ... Layout view affects only documents opened from attachments. ... This document also displays the correct linkages when opened its ...
    (microsoft.public.word.docmanagement)
  • Re: Reading Layout
    ... you've changed the option setting on the General tab of Tools | ... Options ("Allow starting in Reading Layout")? ... Microsoft MVP ...
    (microsoft.public.word.pagelayout)