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);
}
}
}
Vipul MalhotraPosted Jun 13, 2016, 10:43 AM
Vinay SinghPosted Jun 11, 2016, 11:20 AM
theLizardPosted Jun 11, 2016, 1:07 AM
theLizardPosted Jun 11, 2016, 12:32 AM
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("|"));
Karthik ElumalaiPosted Jun 10, 2016, 10:59 PM
http://www.c-sharpcorner.com/blogs/simple-asp-net-code-to-find-all-the-sql-statements-used-in-a-project
Nitin SontakkePosted Jun 10, 2016, 10:24 PM
Feroz KhanPosted Jun 10, 2016, 9:13 AM
Vinay SinghPosted Jun 10, 2016, 4:40 AM
Nitin SontakkePosted Jun 10, 2016, 12:02 AM
Feroz KhanPosted Jun 9, 2016, 4:31 PM
Asad AliPosted Jun 9, 2016, 4:27 PM