|
-
Nov 14th, 2010, 05:52 AM
#4
Re: reading a text file
 Originally Posted by J-Deezy
I think that should work, or would that be inefficient?
It would be inefficient for the same reason: calling ReadAllLines requires reading the entire file. There's no point reading every line if you only need to read the first three. It's not a big deal if the file is small but the bigger the file, the more inefficient it becomes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|