#1
  1. No Profile Picture
    Steve Schofield
    Guest
    ASP Mastermind (5000+ posts)

    Display contents of Text File


    Originally posted by : Craig (craigmoss@hotmail.vom)Hi,I tried the following and got an error Microsoft VBScript runtime error '800a0005' Invalid procedure call or argument /msgto/tst5.asp, line 5 Please let me know what I am doing wrong.Thanks, Craig****************Set fso = CreateObject("Scripting.FileSystemObject")Set f = fso.OpenTextFile(".. estdir est1.txt", ForReading, True)DO WHILE NOT f.AtEndOfStreamstrLineText = f.ReadlineResponse.Write strLineText &""LOOPf.close**************
  2. #2
  3. No Profile Picture
    Steve Schofield
    Guest
    ASP Mastermind (5000+ posts)
    Originally posted by : Praveen (bppraveen001@lycos.com)Hi Craig, Try the following code it may solve your problem:Set fso = CreateObject("Scripting.FileSystemObject")Set f = fso.OpenTextFile(Server.Mappath(".. estdir est1.txt"), ForReading, True)DO WHILE NOT f.AtEndOfStreamstrLineText = f.ReadlineResponse.Write strLineText &""LOOPf.closeHappy ProgrammingPraveen

Similar Threads

  1. Web serverístatistical analysis
    By cso in forum ASP Development
    Replies: 0
    Last Post: April 19th, 2003, 11:35 AM
  2. to read the contents of Text file and insert into database using ASP
    By Steve Schofield in forum ASP Development
    Replies: 1
    Last Post: June 4th, 2002, 02:40 AM
  3. Reading a text file
    By Steve Schofield in forum ASP Development
    Replies: 1
    Last Post: February 2nd, 2002, 01:09 AM
  4. How can i display the content of the text file from a ADO?
    By Steve Schofield in forum SQL Development
    Replies: 0
    Last Post: December 12th, 2000, 02:31 AM
  5. Display content of text file
    By Steve Schofield in forum ASP Development
    Replies: 2
    Last Post: June 14th, 2000, 01:55 AM

IMN logo majestic logo threadwatch logo seochat tools logo