Click here to Skip to main content
12,947,250 members (49,131 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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+""
Set objStream = Nothing
Set objFSO = Nothing
Posted 14-Dec-09 19:59pm
Updated 18-Jan-10 19:31pm

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

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,059
CHill60 3,235
Maciej Los 2,538
Jochen Arndt 1,935
ppolymorphe 1,795

Advertise | Privacy | Mobile
Web02 | 2.8.170518.1 | Last Updated 19 Jan 2010
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100