Search:
Namespaces
Discussions
.NET v1.1
Feedback
overload of Readline
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngwishlist' list
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Yannick Smits
An overloaded form of the Readline method. So that you can jump to a line number.
myStreamReader.ReadLine(10); // read line 10
Yannick Smits
Reply to this message...
Mitch Denny (VIP)
Yannick,
I agree, I also think an additional method called ReadLines(...)
would be good. With two overloads:
public string ReadLines(int numberOfLinesToRead);
That ones easy enough, but I wouldn't want to to block until it
got the lines - just return as much as it can, so I thought a
overload with the signature would be useful aswell:
public string ReadLines(int numberOfLinesToRead, bool
blockExecution);
What do you think?
----------------------------------------
- Mitch Denny
-
http://www.warbyte.com
-
Click here to reveal e-mail address
- +61 (414) 610-141
-
[Original message clipped]
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com