dhruvdubey
New member
- Joined
- Feb 5, 2007
- Messages
- 2
- Programming Experience
- Beginner
import the data from the folder to the database thru vb.net that have several fields.
Dim file As New System.IO.StreamReader(PATH)
Dim content As String = file.ReadToEnd()
file.Close()
Dim rows() As String = content.Split(vbCrLf.ToCharArray())
For i As Integer = LBound(rows) To UBoound(rows) - 1
[INDENT]Dim column1 As String = rows(i).Substring(beginning, end)
Dim column2 As String = rows(i).Substring(beginning, end)
Dim column3 As String = rows(i).Substring(beginning, end)
etc....
SQLSelect("INSERT INTO TABLE VALUES('" & column1 & "','" & column2 & "','" & column3 ...")
[/INDENT]End For