Using the ReadLine method for TextStream object 
Author Message
 Using the ReadLine method for TextStream object

hi,
  i'm doing:

while (a.ReadLine != null)
{
    ... yadda yadda ...

Quote:
}

where a is a text stream object, and the file being read is a few lines
long; the statments execute just fine, but after finishing reading the
last line of the text file, I get the error "Input past end of file"...
   What does this mean, and what do I need to do in order to fix this?

Thanks!
-Dana

Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.



Sat, 17 Nov 2001 03:00:00 GMT  
 Using the ReadLine method for TextStream object
Hi,

try this:

while (!a.AtEndOfStream)
{
    ... yadda yadda ...

Quote:
}

J.Oertli



Quote:
> hi,
>   i'm doing:

> while (a.ReadLine != null)
> {
>     ... yadda yadda ...
> }

> where a is a text stream object, and the file being read is a few lines
> long; the statments execute just fine, but after finishing reading the
> last line of the text file, I get the error "Input past end of file"...
>    What does this mean, and what do I need to do in order to fix this?

> Thanks!
> -Dana

> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.



Mon, 19 Nov 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. TextStream: ReadLine - how to detect eof

2. Open a text file and edit using ReadLine method

3. TextStream: progress indication with ReadLine?

4. Open a text file and edit using ReadLine method

5. using methods with JScript objects stored in session object

6. TextStream.Write method bug?

7. Help with the ReadLine Method

8. Blocking StdOut.ReadLine method

9. Problems with the FileSystemObject/TextStream Object.

10. TextStream Object, passing an opened text file to a variable

11. Using a variable within WshShell object and Run method (newbie at work)

12. TextStream Object Questions

 

 
Powered by phpBB® Forum Software