tag:blogger.com,1999:blog-4902094768490734772.post2082786395197245308..comments2024-03-26T17:22:31.540+05:30Comments on Beginning .net | .Net Tips | C# Tips | MVC | c# .net programming | vb .net programming | SQL Server: .Net Beginners , C# Tips : Locate specific lines within the Text file Using LINQAnonymoushttp://www.blogger.com/profile/02950389317224636373noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4902094768490734772.post-9034831623561526782012-06-13T13:02:33.402+05:302012-06-13T13:02:33.402+05:30Hi,
Thank you for your valuable comment.
Yes you a...Hi,<br />Thank you for your valuable comment.<br />Yes you are right this is also a possible way.<br />But I am demonstrate with the use of LINQ.Anonymoushttps://www.blogger.com/profile/02950389317224636373noreply@blogger.comtag:blogger.com,1999:blog-4902094768490734772.post-14512128206345952102012-06-13T10:37:33.477+05:302012-06-13T10:37:33.477+05:30Why don't use Substring with IndexOf to find t...Why don't use Substring with IndexOf to find the text, it's simple. Or can you consider a explicit benefit of using Linq for this task??<br /><br />string txtTest = "some text here";<br />string txtResult = txtTest.Substring(txtTest.IndexOf("text"));<br /><br />Thanks.William y Aaronhttps://www.blogger.com/profile/11145451134637581835noreply@blogger.com