Re: How to write fixed length records to file.

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



The pattern is AAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBB
i.e. all records of one length are written, then the records of the second
length. . . .

"Larry Serflaten" <serflaten@xxxxxxxxxxxxxx> wrote in message
news:eAaEUny3IHA.4448@xxxxxxxxxxxxxxxxxxxxxxx

"Jim" <idon't@xxxxxxxxx> wrote

****What is the proper method for writing 2 different sets of fixed
length
records to the same file? ****
i.e. write record of length 100: write record of length 80

How about using 2 files?

Will other output methods work? I'm dealing with defined length fields
comprising each record. I don't have allowance for line feed characters
or
quotation marks such as generated by the Write function.

Did you try using a third type that is a combination of the two other
types?

If you're only writing one record of each, you should be able to use a
file
opened for Binary as you indicated. If you're always writing both types
(ABABABAB) then a third type may be needed. If you're mixing them up,
then you really need to rethink the problem... :-)

LFS





.



Relevant Pages

  • Re: How to write fixed length records to file.
    ... comprising each record. ... I don't have allowance for line feed characters or ... Did you try using a third type that is a combination of the two other types? ... If you're only writing one record of each, you should be able to use a file ...
    (microsoft.public.vb.general.discussion)
  • Re: How to find this pattern by regular expression?
    ... I want to find the pattern: PATTERN that can contain lower case or ... -- Start here (this line is not in context) ... /* Third type of comments ... // this is the closing brace} ...
    (comp.lang.tcl)
  • Re: How to find this pattern by regular expression?
    ... I want to find the pattern: PATTERN that can contain lower case or ... -- Start here (this line is not in context) ... /* Third type of comments ... // this is the closing brace} ...
    (comp.lang.perl.misc)
  • How to find this pattern by regular expression?
    ... I want to find the pattern: PATTERN that can contain lower case or ... /* Third type of comments ... // this is the closing brace} ... I need when apply regular expression on the above sample context, ...
    (comp.lang.perl.misc)
  • How to find this pattern by regular expression?
    ... I want to find the pattern: PATTERN that can contain lower case or ... /* Third type of comments ... // this is the closing brace} ... I need when apply regular expression on the above sample context, ...
    (comp.lang.tcl)