Please see below code and picture i want to read data from .txt every after pipe value i want to fix value in text box how can i do this.. with search text box.
using (StreamReader sr = new StreamReader(@"C:\filename.txt", true))
{
while ((line = sr.ReadLine()) != null)
{
if(line.Contains(barcode_or_item_txt.Text))
{
Price_txt.Text = line.Substring(8,5);
}
}
}

Nitin SontakkeRank #264 · 9.6K reputationPosted Jun 10, 2016, 6:24 PM EDT
Karthik ElumalaiRank #544 · 4.5K reputationPosted Jun 10, 2016, 6:59 PM EDT
http://www.c-sharpcorner.com/blogs/simple-asp-net-code-to-find-all-the-sql-statements-used-in-a-project
Asad AliRank #1,139 · 1.6K reputationPosted Jun 9, 2016, 12:27 PM EDT
Feroz KhanRank #3,748 · 395 reputationPosted Jun 9, 2016, 12:31 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Jun 9, 2016, 8:02 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Jun 10, 2016, 12:40 AM EDT
Feroz KhanRank #3,748 · 395 reputationPosted Jun 10, 2016, 5:13 AM EDT
theLizardRank #1,079 · 1.8K reputationPosted Jun 10, 2016, 8:32 PM EDT
string s = "525264565";
int pos = r.Find(s);
pos += s.Length + 1;
s = r.Text.Substring(pos, r.Text.Length - pos);
s = s.Substring(0, s.IndexOf("|"));
theLizardRank #1,079 · 1.8K reputationPosted Jun 10, 2016, 9:07 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Jun 11, 2016, 7:20 AM EDT
Vipul MalhotraRank #276 · 9.1K reputationPosted Jun 13, 2016, 6:43 AM EDT