Hello All,
I'm importing a fixed length record file. And am wondering if there is any easy way to tell if im at the end of the file like there was in .vb 6 using .eof ?
If anyone can help me out I would appreciate it.
Thanks in advance,
Matt
Public Function EmployeeList(ByVal employeeid As String)
Dim myConnection As OleDbConnection
Dim myCommand As OleDbCommand
Dim Reader As OleDbDataReader
Dim strSQL As String
dim EmployeeName, phone, email as string
You can use the peek method of the StreamReader:
-----------------------------------------------
Dim SR As New IO.StreamReader("YourFileName"
Dim Inline As String
While (SR.Peek() > -1)
Inline = SR.ReadLine()
'Do whatever here
End While
-----------------------------------------------
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.