Hi all,
I'm new to VB 2008 Express (I could help myself in VB6) but everything seems so complicated, so I would appreciate some help.
I want to read random lines from a file into an array (I can do that fine), but I want ALL the lines in random order, so I was thinking of generating my random number (1-300, for example), but when I get to 299, how long is it going to take to "trigger" 300 (or whatever number is left)???
So I was thinking that the best is to read line random(x) and then delete that line from the file, and then do a random(1-299) and so on. How would I write these lines into another file then (new file).
If anyone could give me some sample code I would appreciate it, and any links to text-file handling would also be welcome.
Thanx


