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

variable record lengths

Status
Not open for further replies.

jdiek

Programmer
May 3, 2002
2
US
I am writing to a text (ASCII) file that has variable record lengths. (i.e., one record is 25 characters, another 109 characters, etc.) I am using the put statement to write to the file. My problem is, each record is going onto the same line (one record) instead of going to a new line (multiple records). How can I fix this? (The data is all string values.) Thanks.
jdiek
 
Hi jdiek!

Add the vbCrLf constant to the end of each line. That should take you to the beginning of the next line.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top