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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating File with Different Record Lengths

Status
Not open for further replies.

andrea96

Programmer
Jan 26, 2001
201
0
0
US
Is there a way to create a file with different record lengths in VB .NET? I need to create a file that has a header record with a length of 88, any number of detail records with a length of 396 each, and a trailer record with a length of 91. There should not be any spaces after the final character in each record. Any help would be appreciated.
Thanks!


Andrea
 
Just to eliminate the obvious; wouldn't a carriage return delimited text file allow you to determine each record's length and process accordingly?
 
Thanks. Your reply made me realize I was sending the spaces from my stored procedure in a char column. It's been a long week.

Andrea
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top