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

Not able to read using FSO

Status
Not open for further replies.

RushiShroff

Programmer
Jan 23, 2002
216
IN
Code:
<%
Dim  fs, filename, readfile
Dim  Text, TStream
%>
<%
    Set fs = CreateObject(&quot;Scripting.FileSystemObject&quot;)    
    'filename=server.mappath(&quot;1&quot;)
    'response.write filename
    Set readfile=fs.OpenTextFile(&quot;C:\InetPub\[URL unfurl="true"]wwwroot\PMS\inc\dbname.txt&quot;,1,False,False)[/URL]
    Do while not readfile.AtEndOfStream
        Text=readfile.ReadLine
        If Text <> &quot;<&quot; and Text <> &quot;>&quot; and Text <> &quot;%&quot; then
            response.write Text             
        Else
            response.write &quot;<p>&quot;
        End If
    Loop
    readfile.close
    set readfile=nothing
%>

NOT WORRKING FOR
dbname.txt

<%SFA=&quot;SFA.mdb&quot;%>

What to do ? Not able to print on the browser.. Rushi Shroff Rushi@emqube.com
&quot;Life is beautiful.&quot;
 
In view source it displays
Code:
<%SFA=&quot;SFA.mdb&quot;%>
But Not on the browser.
But I only want
SFA.mdb

and later I want to modify it using FSO to some other value say pmsSFA.mdb Rushi Shroff Rushi@emqube.com
&quot;Life is beautiful.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top