cfisher440
Well-known member
- Joined
- Oct 11, 2005
- Messages
- 73
- Programming Experience
- 1-3
I would like to throw a specified number of lines from a file into an array.
I understand executing this code:
will give that array the number of lines in the whole file, but what if I only need about 15 lines out of the file (say lines 30 - 45) in an array.
How would I do that??
Any ideas would be appreciated
I understand executing this code:
VB.NET:
Dim sr as streamReader = new streamReader("File.txt")
Dim strFile as string = sr.readtoend()
Dim strLines as string = strFile.split(ControlChars.lf)
How would I do that??
Any ideas would be appreciated