On Jun 11, 2006, at 7:06 AM, Steve Garman wrote:

In a message regarding reading in a file i've written dated Sun, 11 Jun
2006 6:54:53 -0400, [EMAIL PROTECTED] said that ...

Hi there.

In my program I create a file with a list of users and their passwords. I do this using textstream. However, now I want to read the file in to compare the allowable users with their passwords and
security settings.

If you have s as String and tis as TextInputStream, you can either read the
whole thing direct from the stream

  s = tis.ReadAll

Or you can loop until tis.EOF

  do
    MsgBox tis.ReadLine
  loop until tis.EOF

Probably you should write the loop as

While not tis.eof
  Msgbox tis.ReadLine
Wend

to account for the possibility of an empty file.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to