Her is the code
String filenameTR15min = "C:\\Tools Backup\\60minTrendupdate\\"+ Instrument.FullName +"15min.txt";
StreamReader SR15min;
try{
SR15min=File.OpenText(filenameTR15min);
Trendcolor15min=SR15min.ReadLine();
OldmanualTrendValue15=SR15min.ReadLine();
SR15min.Close();
Print ("*****New Trend Color**********");
Print (Trendcolor15min);
Print (OldmanualTrendValue15);
Print ("*****New Trend Color**********");
}
catch
{
Print ("Read from 15min");
//throw ;
}
Her is the result
_________________________________
****************************
*****New Trend Color**********
Red
*****New Trend Color**********
****************************
_____________________________________
Their should be 2 Red like this
****************************
*****New Trend Color**********
Red
Red
*****New Trend Color**********
****************************
_____________________________________
Thanks in advance
Crunchy

Comment