Click here to Skip to main content
15,884,388 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to convert XML Datatype in SQL to C# Pin
originSH3-Apr-07 0:38
originSH3-Apr-07 0:38 
GeneralRe: How to convert XML Datatype in SQL to C# Pin
srivatsan243-Apr-07 1:04
srivatsan243-Apr-07 1:04 
GeneralRe: How to convert XML Datatype in SQL to C# Pin
kubben3-Apr-07 2:31
kubben3-Apr-07 2:31 
GeneralRe: How to convert XML Datatype in SQL to C# Pin
originSH3-Apr-07 2:33
originSH3-Apr-07 2:33 
QuestionReading from a network stream problem Pin
ctoma20052-Apr-07 21:44
ctoma20052-Apr-07 21:44 
AnswerRe: Reading from a network stream problem Pin
WillemM3-Apr-07 1:18
WillemM3-Apr-07 1:18 
QuestionHow I can find out the assembly is COM server or not? Pin
Vlad~2-Apr-07 21:30
Vlad~2-Apr-07 21:30 
QuestionHow to delete a Row in a Text "CSV" file? [modified] Pin
Khoramdin2-Apr-07 21:22
Khoramdin2-Apr-07 21:22 
Hello everyone,

I am developing a windows application in which it contains a ListView. I am showing the contents(rows) of the ListView from a csv file where each row represents a different data. I wish to have the ability of deleting any selected row. It appears the only options that I am getting from Streaming is "streamWriter.WriteLine" and "streamReader.ReadLine".

My finding so far is that the only way to delete a row from a text-based file is to rewrite that file without the particular row you want removed. So, I should delete the file, loop through the remaining rows in the ListView, and write them back out one by one. This is not something which I wish to do and I was wondering if there is any better way to get this done?

Can anyone be kind enough to tell how I can get this done?

Thank you very much and have a great day.

Khoramdin



-- modified at 3:31 Tuesday 3rd April, 2007
AnswerRe: How to delete a Row in a Text "CSV" file? Pin
WillemM3-Apr-07 1:23
WillemM3-Apr-07 1:23 
GeneralRe: How to delete a Row in a Text "CSV" file? [modified] Pin
Khoramdin3-Apr-07 5:35
Khoramdin3-Apr-07 5:35 
QuestionError on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 20:56
JacquesDP2-Apr-07 20:56 
AnswerRe: Error on DataAdapter.Fill() Pin
CPallini2-Apr-07 21:20
mveCPallini2-Apr-07 21:20 
GeneralRe: Error on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 21:31
JacquesDP2-Apr-07 21:31 
AnswerRe: Error on DataAdapter.Fill() Pin
sooreeagt2-Apr-07 22:41
sooreeagt2-Apr-07 22:41 
GeneralRe: Error on DataAdapter.Fill() Pin
JacquesDP2-Apr-07 22:44
JacquesDP2-Apr-07 22:44 
Questionhow to implement xmlDOm in c# Pin
sweetnallu2-Apr-07 20:26
sweetnallu2-Apr-07 20:26 
AnswerRe: how to implement xmlDOm in c# Pin
Christian Graus2-Apr-07 20:49
protectorChristian Graus2-Apr-07 20:49 
AnswerRe: how to implement xmlDOm in c# Pin
Sathesh Sakthivel2-Apr-07 20:50
Sathesh Sakthivel2-Apr-07 20:50 
GeneralRe: how to implement xmlDOm in c# Pin
Christian Graus2-Apr-07 21:21
protectorChristian Graus2-Apr-07 21:21 
GeneralRe: how to implement xmlDOm in c# Pin
714-Apr-07 17:52
714-Apr-07 17:52 
Questionhow to split string Pin
sooreeagt2-Apr-07 20:22
sooreeagt2-Apr-07 20:22 
AnswerRe: how to split string Pin
Martin#2-Apr-07 20:31
Martin#2-Apr-07 20:31 
AnswerRe: how to split string Pin
Vinay Dornala2-Apr-07 22:43
Vinay Dornala2-Apr-07 22:43 
GeneralRe: how to split string Pin
Martin#2-Apr-07 23:31
Martin#2-Apr-07 23:31 
QuestionPlz help me in changing position of Main menu Pin
EEmaan2-Apr-07 19:25
EEmaan2-Apr-07 19:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.