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");
}

Saillesh PawarRank #537 · 4.5K reputationPosted Apr 3, 2016, 10:50 AM EDT
Feroz KhanRank #3,748 · 395 reputationPosted Apr 4, 2016, 3:29 AM EDT
ali tuncerRank #1,499 · 1.1K reputationPosted Apr 4, 2016, 10:17 PM EDT
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());
}