diamond diamond

diamond diamond

  • NA
  • 133
  • 55.4k

Write data to txt file without rewritting

Sep 30 2013 4:11 PM
Hi,

I have a code, same as below:
I define it in globally :

        TextWriter file = new StreamWriter("C:\\Hello.txt", true);


this give an error 
for (i=0;i<100;i++)
{
double FPRate = (double)FP1.Count() / (FP1.Count() + TN1.Count()) * 100;
            double DetectionRate = (double)TP1.Count() / (TP1.Count() + FN1.Count()) * 100;
            file.Write(FPRate);
            file.Close();

Answers (3)