473,386 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

fixed field, record length

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.
Mar 22 '07 #1
2 1681
Sounds like you want to write an Random Access File where the file is
structured for fixed lengths.
"Jim" <jo********@RemoveThisStuffNetscape.netwrote in message
news:xf******************************@massilloncab letv.com...
>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.
Mar 23 '07 #2

"Jim" <jo********@RemoveThisStuffNetscape.netwrote in message
news:xf******************************@massilloncab letv.com...
>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.

Mar 23 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: Adrian Parker | last post by:
I'm using the code below in my project. When I print all of these fixed length string variables, one per line, they strings in questions do not properly pad with 0s. strQuantity prints as " ...
2
by: Greg Lindstrom | last post by:
Hello- I'm creating fixed-length record layouts for various record translations I need to perform. I have been using a home-grown object, "FixedLengthRecord" for about 4 years now and am very...
15
by: shaqattack1992-newsgroups | last post by:
Hello Everyone, Let me explain my problem. I have included 2 dashes between each pair of records to make it easier to see what goes together. In reality, it is just a long list of results...
8
by: Jami Bradley | last post by:
Hi, I'm looking for an efficient way to do this, because I know it will be heavily used :-) I have a fixed width string and I need to substitute a substring of characters with new values. I...
3
by: ecov | last post by:
Is there any easy way to read into a dataset a file that was created from a BCP command. The file is in a fixed length format. I would also like to be able to write out a dataset to the same type...
5
by: Neil Robbins | last post by:
I have a text file that stores a number of records that I need to access in a vb.net application. Each of the fields that make up a record are of a fixed number of bytes. So for instance there is...
5
by: David Garamond | last post by:
The MySQL manual recommends that we create a "fixed-length row" if possible, for speed (especially scanning speed). A fixed-length row is a row which is comprised of only fixed-length fields. A...
13
by: Neil Cerutti | last post by:
Many of the file formats I have to work with are so-called fixed-format records, where every line in the file is a record, and every field in a record takes up a specific amount of space. For...
5
by: Rowan | last post by:
Hi, I am somewhat new to .net and c#. (What I learned in previous co has to be unlearned). I am doing something that seems simple but I think there is a better way than how I learned to do it. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.