Hello I have file "sign.car" that is being chared by another program.
that's how it works:
I lauch the c# code. And i excute the other program also.
They both depend on this file. And it contains 1 or 0.
If sign = 1. The the program will use it.
Else i will use it.
That's how i wrote it. BUT it is TIME CONSUMING!!!!!!!!!!!
i have to wait 2 SECONDS it is really slowing my work.
List<Classification> data = new List<Classification>();
while (signe == 1)
if (stopW.ElapsedMilliseconds > 2000)
StreamReader reader1 = new StreamReader("signe.car");
line = reader1.ReadLine();
signe = Int32.Parse(line);
if (signe == 0)
string path = "resultat.car";
string lines = File.ReadAllLines(path);
string[,] grid = new string[obs.GetLength(0), 2];
for (int i = 0; i < lines.Length; i++)
string fields = lines[i].Split('\t');
data.Add(new Classification(Int32.Parse(fields), Int32.Parse(fields)));