Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Fso Eof

  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Fso Eof

    I was wondering if somebody could help me with this: I was wondering if there was a way to find the EOF, or test it so you don't use SkipLine() incorrectly; meaning you don't SkipLine() over a line you don't have.

    Any help will be appreciated.

    Suendisra

  • #2
    Regular Coder
    Join Date
    May 2005
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts
    AtEndOfStream property...

    Code:
    while(!myTextStream.AtEndOfStream) 
    	myTextStream.SkipLine();
    
    WScript.Echo(myTextStream.Line); // line count
    Thanks in advance!


  •  

    Posting Permissions

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