Advertisement

04.22.2008 at 04:01AM PDT, ID: 23342433
[x]
Attachment Details

How to delete or replace some text in text file using c#.net

Asked by SHAHEEN_AKHTAR in Microsoft Visual C#.Net

Tags: c#

Hello all experts,

I am writing lines to textfile using StreamWriter.WriteLine() method. Then reading each line and then do processing for that line. After the process for that line is completed, I wanted to delete that line from the text file and retain the remaining lines.

Can some experts give me a sample code and a bit of explanation please.

Thanks and regardsStart Free Trial
[+][-]04.23.2008 at 02:10AM PDT, ID: 21418721

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual C#.Net
Tags: c#
Sign Up Now!
Solution Provided By: CRISIL
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628