Click here to Skip to main content
15,915,771 members
Home / Discussions / C#
   

C#

 
QuestionFilename check with extention Pin
Yogesh Tayade5-May-09 0:28
Yogesh Tayade5-May-09 0:28 
AnswerRe: Filename check with extention Pin
Malmberg5-May-09 0:33
Malmberg5-May-09 0:33 
QuestionDelete line from Excel file Pin
polycom1234-May-09 23:00
polycom1234-May-09 23:00 
AnswerRe: Delete line from Excel file Pin
Christian Graus4-May-09 23:05
protectorChristian Graus4-May-09 23:05 
GeneralRe: Delete line from Excel file Pin
OriginalGriff4-May-09 23:34
mveOriginalGriff4-May-09 23:34 
GeneralRe: Delete line from Excel file Pin
polycom1235-May-09 0:15
polycom1235-May-09 0:15 
GeneralRe: Delete line from Excel file Pin
polycom1235-May-09 0:11
polycom1235-May-09 0:11 
AnswerRe: Delete line from Excel file Pin
Philipp Sumi4-May-09 23:32
Philipp Sumi4-May-09 23:32 
You will have to rewrite the whole file if you want to change it's contents. You should find quite a few samples through Google (e.g. http://stackoverflow.com/questions/532217/efficient-way-to-delete-a-line-from-a-text-file-c[^]).

Regarding CSV: There's a few frameworks flying around that provide you with an abstract view of a CSV file (there's even a LINQ implementation here on CodeProject). And of course, just retaining the file and ignoring the line in question might be an alternative, too. However, the added functionality most likely comes with a price regarding performance.

Cheers,
Philipp

NetDrives - Open Source Network Share Management

AnswerThe solution Pin
polycom1235-May-09 2:11
polycom1235-May-09 2:11 
GeneralRe: The solution Pin
dan!sh 5-May-09 2:44
professional dan!sh 5-May-09 2:44 
GeneralRe: The solution Pin
Dave Kreskowiak5-May-09 4:43
mveDave Kreskowiak5-May-09 4:43 
QuestionArray Pin
mostafatajamolian4-May-09 22:57
mostafatajamolian4-May-09 22:57 
AnswerRe: Array Pin
Christian Graus4-May-09 23:04
protectorChristian Graus4-May-09 23:04 
AnswerRe: Array Pin
musefan4-May-09 23:25
musefan4-May-09 23:25 
Questionreading reodonly files for backup (Steams) Pin
fracalifa4-May-09 22:55
fracalifa4-May-09 22:55 
AnswerRe: reading reodonly files for backup (Steams) Pin
Christian Graus4-May-09 23:06
protectorChristian Graus4-May-09 23:06 
GeneralRe: reading reodonly files for backup (Steams) Pin
fracalifa4-May-09 23:10
fracalifa4-May-09 23:10 
GeneralRe: reading reodonly files for backup (Steams) Pin
Christian Graus4-May-09 23:15
protectorChristian Graus4-May-09 23:15 
GeneralRe: reading reodonly files for backup (Steams) Pin
Luc Pattyn4-May-09 23:31
sitebuilderLuc Pattyn4-May-09 23:31 
QuestionFile path problem (Path contains a space) Pin
bonkers1234-May-09 22:35
bonkers1234-May-09 22:35 
AnswerRe: File path problem (Path contains a space) Pin
Christian Graus4-May-09 22:44
protectorChristian Graus4-May-09 22:44 
GeneralRe: File path problem (Path contains a space) Pin
bonkers1234-May-09 23:15
bonkers1234-May-09 23:15 
GeneralRe: File path problem (Path contains a space) Pin
Christian Graus4-May-09 23:20
protectorChristian Graus4-May-09 23:20 
QuestionShow data of type Varbinary in form of image in GridViewColumn Pin
drcmomo4-May-09 22:24
drcmomo4-May-09 22:24 
AnswerRe: Show data of type Varbinary in form of image in GridViewColumn Pin
Henry Minute5-May-09 1:17
Henry Minute5-May-09 1:17 

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.