CodeItBetter Programming Another VB Programming Blog

How to Return a specific line number from a file (note: first line = line number 0) – a neater version.

Posted on January 4, 2009
1
2
3
4
'Text File Handling - How to Return a specific line number from a file (note: first line = line number 0) - a neater version.
Private Function getLine(ByVal strFile As String, ByVal lineNumber As Long) As String
    getLine = Split(returnContents(strFile), vbCrLf)(lineNumber)
End Function
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.