Re: How to write fixed length records to file.
- From: "Jim" <idon't@xxxxxxxxx>
- Date: Sun, 6 Jul 2008 23:31:12 -0500
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
.
- Follow-Ups:
- Re: How to write fixed length records to file.
- From: Larry Serflaten
- Re: How to write fixed length records to file.
- From: Bob O`Bob
- Re: How to write fixed length records to file.
- References:
- How to write fixed length records to file.
- From: Jim
- Re: How to write fixed length records to file.
- From: Larry Serflaten
- How to write fixed length records to file.
- Prev by Date: Re: What is err.Numer -2147418111 ?
- Next by Date: Re: How to write fixed length records to file.
- Previous by thread: Re: How to write fixed length records to file.
- Next by thread: Re: How to write fixed length records to file.
- Index(es):
Relevant Pages
|