View Single Post
  #32 (permalink)  
Old 09-17-2008, 04:25 PM
Brumo Brumo is offline
Newbie
 
Join Date: Sep 2008
Posts: 9
Credits: 0
Rep Power: 0
Brumo is on a distinguished road
Default Re: C# Tutorial: Writing Text Files

Yow, Thanks for the tutorial

I am working on some thing atm but i cant find out why thsi write my information twice in the same row
Code:
String AllData = (ID) + (";") + (Name) + (";") + (Date) + (";") + (Time)

           StreamWriter sw = new StreamWriter(@"C:\TimeTable.csv", true); 
           string bufferOne = (AllData);
           sw.Write(bufferOne);
           sw.WriteLine(bufferOne);

           sw.Close();
           sw.Dispose();
It is returning the same information twice as i mentioned before but i dont know why because i use the variable only once in the writeline proces:s although i am appending the Timetable maybe that has to do with it something.
Reply With Quote