problem with FileSystemObject

Results 1 to 2 of 2

Thread: problem with FileSystemObject

  1. #1
    Join Date
    Dec 1969

    Default problem with FileSystemObject

    Hi,<BR><BR>I&#039m working on opening a text file for reading. Everything works fine but when I try to re-read the file in another asp page, it gives me a Permission denied error. I&#039m closing the file at the end of the page and also using "set filesys = nothing" to release all resources. Has any one got this problem earlier. If there is a work around, I&#039ll be glad to know that.<BR><BR>Thanks<BR><BR>Sandy

  2. #2
    Gurender Guest

    Default RE: problem with FileSystemObject

    Dear ,<BR>U hav not given syntex how u r trying to read it <BR><BR>try like this<BR>set MyfileObject=Server.CreateObject("Scripting.FileSy stemObject")<BR>set Myfile=Myfileobject.OpenTextFile("c:windowscheck.v xd",1,true)<BR>while not myfile.AtEndOfStream<BR><BR>v_line=myfile.readline <BR><BR>Response.Write("this is v line "&v_line)<BR>wend<BR><BR>set myfile=nothing<BR>%&#062;<BR><BR>&#060;%<BR>else<B R>%&#062;<BR><BR>&#060;%<BR>myfile.close<BR>set myfile=nothing<BR>%&#062;<BR><BR>U can mail me if u find again problem and write me also if it solved<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts