hawk
Member
- Joined
- Sep 6, 2008
- Messages
- 8
- Programming Experience
- Beginner
Hi All,
Hopefully something relatively easy you guys can direct me on.
Currently I have an external csv that I read and then search for results. I want to now embed this as a resource but without much luck.
Any advice welcome - current code below.
Hopefully something relatively easy you guys can direct me on.
Currently I have an external csv that I read and then search for results. I want to now embed this as a resource but without much luck.
Any advice welcome - current code below.
VB.NET:
Dim path As String = "C:\music.csv"
Dim sr As StreamReader = File.OpenText(path)
Do While sr.Peek()
Dim test1 As Double
Dim test2 As Double
Dim line As String = sr.ReadLine()
Dim fields() As String = Split(line, ",")
perform some actions
sr.Close()