Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Appending Text to File - Please Help!!!

Thread Tools

Appending Text to File - Please Help!!!

Tapanan Yeophantong
Posts: n/a
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,
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
Set objOpenFile = Nothing
Set objFSO = Nothing

This message is posted by

Reply With Quote
Ray at
Posts: n/a

Ray at home

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

> Set objFSO = Server.CreateObject ("Scripting.FileSystemObject")

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
appending a text string to the DataNavigateURLField property Jim in Arizona ASP .Net 0 05-08-2009 10:53 PM
appending the contents of multiple text files into 1 file Paul Danese Ruby 1 06-14-2007 04:25 PM
appending to a text file Javascript 5 06-05-2007 01:38 PM
Appending Text To <%# Eval("...") %> In HTML? clintonG ASP .Net 2 01-22-2007 09:45 PM
replacing text at the beginning of a file in perl and appending to that output Perl Misc 3 07-20-2005 06:17 PM