Appending Text to File - Please Help!!!

Discussion in 'ASP General' started by Tapanan Yeophantong, Oct 18, 2003.

  1. What''s wrong with this code? The IIS seems to be taking an infinite amount of time to respond (and it never did). Please Help!

    Set objFSO = Server.CreateObject ("Scripting.FileSystemObject")
    strPath = "C:\AuditIS\System.log"
    If (objFSO.FileExists (strPath)) Then
    Set objOpenFile = objFSO.OpenTextFile (strPath, 8)
    Else
    Set objOpenFile = objFSO.CreateTextFile (strPath)
    objOpenFile.WriteLine ("User / Type of Access / Source / Source ID / Time of Access")
    End If

    objOpenFile.WriteLine Session("Username") & " / " & "Created" & " / " & "Project" & " / " & strPrjId & " / " & Date & " " & Time
    objOpenFile.Close
    Set objOpenFile = Nothing
    Set objFSO = Nothing

    -----------------------------
    This message is posted by http://Asp.ForumsZone.com
    Tapanan Yeophantong, Oct 18, 2003
    #1
    1. Advertising

  2. Tapanan Yeophantong

    Ray at Guest

    http://www.aspfaq.com/2180

    Ray at home

    "Tapanan Yeophantong" <> wrote:
    > IIS seems to be taking an infinite amount of time to respond (and it never

    did).
    > Set objFSO = Server.CreateObject ("Scripting.FileSystemObject")
    Ray at, Oct 18, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. KK
    Replies:
    2
    Views:
    550
    Big Brian
    Oct 14, 2003
  2. clintonG
    Replies:
    2
    Views:
    5,041
    clintonG
    Jan 22, 2007
  3. Paul Danese
    Replies:
    1
    Views:
    125
    Stefano Crocco
    Jun 14, 2007
  4. Replies:
    3
    Views:
    150
    Klaus Eichner
    Jul 20, 2005
  5. appending to a text file

    , Jun 4, 2007, in forum: Javascript
    Replies:
    5
    Views:
    167
Loading...

Share This Page