Textstream - adding new lines, tabs, etc.
Posted on 2004-10-16
I create a textstream in my ASP page and read in a text file. In this text file is an email confirmation standard message, with also the text #ORDERINFO# in it somewhere. What I do once I have read in the text file is to loop through the order info then build a piece of text named orderstxt which has the order details in it. I then replace #ORDERINFO# with orderstxt. The problem is building orderstxt because I can't figure out how to add newlines, tabs, etc.
For i=0 to ubound(CCcart,2)
if CCcart(CC_PRODUCTID,i) <> "" then
orderstxt = orderstxt & "\n " & CCcart(CC_ProductID,i)
...just puts "\n " into the text instead of creating a newline. Should I be using ASCII characters? I don't understand if what I'm reading in is ASCII, Unicode, etc.