Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 16th, 2003, 04:35 PM
Authorized User
 
Join Date: Jul 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Append a textfile information to a variable

I am trying to do something like this:

<%
Dim sLine, bIsNewElement,textline
Set fs=Server.CreateObject("Scripting.FileSystemObject ")
Set f=fs.OpenTextFile(Server.MapPath("archive"+"/"+archive+"/title/title.txt"), 1)
'below wont work
textline = f
bIsNewElement = true
Response.Write "<span class='TextBold14pt'>" & f.ReadLine & "</span>"
Response.Write textline
f.Close
Set f=Nothing
Set fs=Nothing

%>

does anyone has any idea how to append the info from a text file to a variable?

Thankx!


...helmut
__________________
...helmut
 
Old July 16th, 2003, 08:23 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

RTM

http://www.microsoft.com/technet/tre...s_scr_iikh.asp

regards
David Cameron





Similar Threads
Thread Thread Starter Forum Replies Last Post
Append Information to a XML file YoungLuke C# 2 July 26th, 2007 02:15 PM
How to load multiple textfile royaloba Pro VB 6 2 October 27th, 2006 12:18 AM
Querying a textfile in QA daniel SQL Server 2000 10 February 1st, 2006 01:51 AM
Appending to a TextFile jfleming SQL Server DTS 3 June 16th, 2004 08:45 AM
Importing a TextFile, best way ioates SQL Server 2000 1 June 27th, 2003 07:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.