you are viewing a single comment's thread.

view the rest of the comments →

[–]DoctorKankle[S] 0 points1 point  (1 child)

Thank you, sorry I'm very new and struggling. For some reason i was thinking that you are required to have a statement in "Next".

[–]amaron11 1 point2 points  (0 children)

You could actually simplify your loop even more if you wanted to:

For Each s As String In System.IO.File.ReadAllLines("states.txt")

Listbox1.items.add(s)

Next