Sign in to follow this  
Takaloy

More ASP Trouble (solved)

Recommended Posts

Hi again, I'm trying to use a ASP file (not ASP.NET) to write some lines into a .svg files which is supposedly the same way as writing into a .txt file. The problem is I have no idea how to stream it into a .txt file (something like what you can do with windows programmes). [Edited by - Takaloy on August 18, 2006 4:55:07 AM]

Share this post


Link to post
Share on other sites
nvm I figured it out. thanks. Here's the way to do it.



<%

set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open "URL=" & placeURLHERE , adModeReadWrite, 8'adOpenStreamFromURL

objStream.Charset = "ascii"
strText = objStream.ReadText

objStream.Position = 0
objStream.SetEOS


strText = "HOHOHOHHOHOHO"
objStream.writetext(strText)


objStream.close
set objStream = nothing

%>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this