Results 1 to 2 of 2

Thread: FileSystemObject

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    I need a way to detect the EOF with FSO

    Code:
    Set FSO = CreateObject("Scripting.FileSystemObject")
    Set File = FSO.OpenTextFile(Filename, 1)
    
    Do While Not File.EOF(1)
    Loop
    
    File.Close

  2. #2
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    Since it's streaming the files it's not EOF it's end of stream
    Code:
    Set FileSystemToUse = CreateObject("Scripting.FileSystemObject")
       
     Do While Not FileToRead.AtEndOfStream
    try something like that .
    []Private[]
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

Posting Permissions

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



Click Here to Expand Forum to Full Width