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
Sign In
Register
AdSense Revenue
Active Members
Today
Appukuttan
(94)
Abhi
(72)
Babu Akkandi
(62)
Last 7 Days
Appukuttan
(619)
Babu Akkandi
(469)
divya
(321)
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 2008
Member Level:
Silver
Rating:
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
Is there any expert to solve this?
what is difference between String and string(data type) in c#?
what is a resource file...
Horizontal Scroll Bar for a listview control
sql querry
dotNet Slackers
BizTalk Adaptors
Web Design
Contact Us
Privacy Policy
Terms Of Use