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. Advertisements

  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. Advertisements

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. Replies:
    4
    Views:
    838
    Chris Uppal
    May 5, 2005
  2. KK
    Replies:
    2
    Views:
    1,070
    Big Brian
    Oct 14, 2003
  3. MuZZy
    Replies:
    7
    Views:
    2,104
    Mike Hewson
    Jan 7, 2005
  4. clintonG
    Replies:
    2
    Views:
    5,695
    clintonG
    Jan 22, 2007
  5. Paul Danese
    Replies:
    1
    Views:
    222
    Stefano Crocco
    Jun 14, 2007
  6. Replies:
    3
    Views:
    220
    Klaus Eichner
    Jul 20, 2005
  7. Mladen
    Replies:
    5
    Views:
    375
    Peter Scott
    Feb 22, 2011
  8. appending to a text file

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