Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text File Length for a single stream

Status
Not open for further replies.

nikhilparchure

Programmer
Oct 6, 2001
121
AU
Hi ,
I had an txt file extract which extracted records as

H 000 123 5566
DE 2342 2342 2342 243
T 1321 2423 2424

After every grouped record there was a CRLF feed character as the de-limiter.

The requirement has changed to output the file in
below given format..
H 000 123 5566 DE 2342 2342 2342 243 T 1321 2423 2424

This is sample record which consists of a single detail
record.(DE 2342 2342 2342 243)

But in actual the number transactions(detail records) could be in large.

Is there a limitation on the length of the record for a single line of record in a txt file.

Regards
Nik.



 
Streams don't use records, so they can be as long as you need (up to the filesize limit imposed by the OS, which is 2gb in most versions of Windows). All you'd be doing is appending data to the stream (aka file), so there's no problem -- it's just a series of bytes.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top