Hi,
I want to do multiply with below code but where value i have fixed like 0.50 there i want to pick value from notepad.txt file so i can i do this.. please see below code.. and help me about that.. thanks..
int TotalSale = Convert.ToInt32(Total_sale_lbl.Text);
int Perc = Convert.ToInt32(Eighty_txt.Text);
if (Perc >= 95 && Perc <= 99)
{
bounus_txt.ForeColor = Color.Green;
bounus_txt.Text = (TotalSale / 100 * 0.50).ToString("0");
}
ali tuncerPosted Apr 5, 2016, 2:17 AM
you can use File.ReadAllLines method, put every line in a string array..
string[] readText = File.ReadAllLines(@"FILEPATH");
foreach (string s in readText)
{
Console.WriteLine(s.Split('=').Last());
}
Feroz KhanPosted Apr 4, 2016, 7:29 AM
Saillesh PawarPosted Apr 3, 2016, 2:50 PM