fixed field, record length

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

I need to write a text file that has fixed length fields resulting in a
fixed length record. What I'd like to see is something like Cobol (gag)
uses
01 rec.
02 field1 pic x(02.
02 field2 pic x(10).

write rec.

I'm using FileIO.TextFieldParser

I'm a .net newbie.

Yes I'm cross posting.
 
Sounds like you want to write an Random Access File where the file is
structured for fixed lengths.
 
Jim said:
I need to write a text file that has fixed length fields resulting in a
fixed length record. What I'd like to see is something like Cobol (gag)
uses
01 rec.
02 field1 pic x(02.
02 field2 pic x(10).

write rec.

I'm using FileIO.TextFieldParser

I'm a .net newbie.

Yes I'm cross posting.

Cross-posting would be okay. Cross-posting is when you post the message to
multiple newsgroups, all at the same time. When you do this, if someone in
one group answers the question, all of the groups can see it. Then people
know it has been answered, and they can add to it, or go spend their time
helping someone else.

If you posted this message in another newsgroup, you're *multi-Posting*,
which is considered rude.

Just FYI.

Robin S.
 
Back
Top