Reading text file into listbox getting random lines?
Posted by Rick on January 16, 2005:
Hi, i was wondering if someone could help me. I am trying to write a program which reads in names from a text file into a listbox. I need to read in all the names but in different orders (randomly) when a button is pressed or the form loads. I can get it so it reads in random names but it is never all of them, just a few names multiple times. I have tried using a for loop and also i have used a while not EOF(filename) loop but i cannot figure it out. I would really appreciate any help which can be given.
Related Articles and Replies