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

fixed length txt file

Status
Not open for further replies.

parames

MIS
Jun 26, 2000
71
MY
Hello List,

I want to transfer the data from my database to a .txt file using asp. How to transfer the data in 'fixed width' method..
Please help..

Thanks a lot..

rgds,
Parames.s
 
Are those fields in the database fixed length? If yes, it'll be just a straight forward process by adding all fields together.
However, if they're not. You need to decide what's the length in each field from the database.
Afterwards, adding spaces to each fields in order to make the length equal to the length that you set. You can use length function and to decide how many spaces are required.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top