Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP
i have to disable the authorization of the page. how can i include the authorization and still can write to the textfile?
 
Here is my code :
 
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
        
Dim fso,f
Set fso = CreateObject("Scripting.FileSystemObject")  
Set f  = fso.OpenTextFile("c:\tLog.txt",ForAppending ,true)
f.Write "test"
    
        
        
Set objFSO = Server.createobject("scripting.filesystemobject")
Set objStream = objFSO.OpenTextFile(l, 8, True)
objStream.WriteLine "NO PARAMETER PASSED" 
objStream.WriteLine "=========="
objStream.WriteLine "TIME LOGGED:"+todaysDate+""
objStream.Close
    
Set objStream = Nothing
Set objFSO = Nothing
Posted 14-Dec-09 19:59pm
Edited 18-Jan-10 19:31pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Guruprasad.K.Basavaraju 490
1 Shai Vashdi 339
2 Sergey Alexandrovich Kryukov 291
3 Peter Leow 135
4 praveen_07 115
0 Sergey Alexandrovich Kryukov 9,185
1 OriginalGriff 5,335
2 Peter Leow 4,040
3 Maciej Los 3,540
4 Abhinav S 3,308


Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 19 Jan 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid