Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Appending Text to File - Please Help!!!

 
 
Tapanan Yeophantong
Guest
Posts: n/a
 
      10-18-2003
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,
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

 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      10-18-2003
http://www.aspfaq.com/2180

Ray at home

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

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



 
Reply With Quote
 
 
 
Reply

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 llama.named.sue@gmail.com 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 aixenv@yahoo.com Perl Misc 3 07-20-2005 06:17 PM



Advertisments