Click here to Skip to main content
12,355,575 members (69,477 online)
Rate this:
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+""
Set objStream = Nothing
Set objFSO = Nothing
Posted 14-Dec-09 19:59pm
Edited 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

Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 19 Jan 2010
Copyright © CodeProject, 1999-2016
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