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!

writing to a text file -FSO- formatting problem

Status
Not open for further replies.

Shal2

Programmer
Dec 3, 2001
52
NZ
Hello,

I am using ASP to run a SQL Server Stored procedure and then write the output to a text file using FSO. It is working fine. But I am having difficulty formatting the result in the text file.

I want the output to be "Unicode text format, tab delimited". Could anyone help me with this please. Do I need to use Response.Contenttype?
Below is a portion of the code which is both displaying the output on the screen and writing to the test file.

Thank you,
Shalini.

Set objTextStream = objFSO.OpenTextFile("C:\inetpub\ ,fsoForWriting, True)

Do While Not results.BOF and Not results.EOF
 
Response.Write (""&results("pagenumber") &"")
Response.Write (""&results("catdescription") &"")

objTextStream.Write ""&results("pagenumber")&""
objTextStream.Write ""&results("catdescription")&""
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top