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

C#

 
QuestionConvert string to Font Pin
yesu prakash5-May-09 0:48
yesu prakash5-May-09 0:48 
AnswerRe: Convert string to Font Pin
Michael Bookatz5-May-09 1:02
Michael Bookatz5-May-09 1:02 
AnswerRe: Convert string to Font Pin
Baran M5-May-09 3:44
Baran M5-May-09 3:44 
AnswerRe: Convert string to Font Pin
khodadadeh1-Sep-10 14:13
khodadadeh1-Sep-10 14:13 
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 
polycom123 wrote:
is there a way from C# to open the csv file and remove the first line?


Easy. File.ReadAllLines, to get an array of strings, then write the file over itself, skipping the lines you don't want anymore

Christian Graus

Driven to the arms of OSX by Vista.

"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

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 
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 

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.