Hello,
How do I load items from a txt file into listbox?
srina
0
Newbie Poster
Recommended Answers
Jump to PostRead an online tutorial that teaches you how to read text files. Once you understand how to do that the rest is simple (just add each line to the list box)
Jump to PostYou can use a For Each Loop to iterate through the array.
For Each record As String In data ' Do some data processing... Next
Jump to PostIn your LINQ statement, there is no need to use Select (in c# you have to). since you are only pulling records of the same type.
I've also noticed you are pulling from one heading. since you are declare a heading as the first index of data.
data= line.split(","c)
…
All 10 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Maligui
commented:
Teaching them how to fish. Nice work. :)
+3
srina
0
Newbie Poster
Maligui
1
Application Developer
srina
0
Newbie Poster
Maligui
1
Application Developer
srina
0
Newbie Poster
Maligui
1
Application Developer
srina
0
Newbie Poster
Maligui
1
Application Developer
srina
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.