Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
can anyone help me?
i have a text file in this manner:

1;Name1;21
2;Name2;22
3;Name3;19
4;Name4;25

and i want to save it in my sdf database.
i first put the data in listbox
with these codes:

Dim streamer As IO.StreamReader
streamer = System.IO.File.OpenText(TextBox1.Text)
Dim mystring As String() = streamer.ReadToEnd.Split(";")
ListBox1.Items.AddRange(mystring)

the output looks like this:
1
Name1
21
2
Name2
22

.. and so on.

how can i store it in my database ?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900