C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Removing perticular line from text file(.txt)


Posted Date: 04 Jul 2008      Total Responses: 1

Posted By: Senthil vel       Member Level: Gold     Points: 1



hi, i am creating the .txt file using the component avialble in net.
In this created txt file contains the company details.we can remove it manually.
Now i want to do it in C# code.

See the model txt file:
Hai
hello
fine.
Converted by trial version of the Pdf Metamorphosis .NET
Trial version converts only first 10 pages!
Get the full featured version now!
Now i want to remove the last three lines.

Can any one solve it...





Responses

Author: Ansar    09 Aug 2008Member Level: SilverRating:     Points: 2

string[] lines = myString.Split(Environment.NewLine)

now you have the lines, just choose and join the lines which you want.



Post Reply
You must Sign In to post a response.
Next : Editable DropDown(Very Urgent)
Previous : duplicate records
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use