المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Delete line from Excel file



C# Programming
05-05-2009, 01:01 PM
Hello.
I'm Reading data from an excel (CSV) file with header row and its fine.
Now I have a file with one more line in the start (above the header) and it giving me a lot of problems.

is there a way from C# to open the csv file and remove the first line?

If not as excel then maybe I'll just open it as a text file and remove it (I know whats the string I want to remove).

Whats the fasted way to remove a string from the beggining of a txt file?

Thanks.