Hi, am having problem for comma delimited files, i wanna read data from different lines and also reading a specific line to display it in a text box or a label!!!
anyone can help plz
vinc_1418
Recommended Answers
Jump to PostYou can do something like below :
StreamReader objSR = new StreamReader("Filepath"); string strLine = ""; while((strLine = objSR.ReadLine())!= null) { if(!strLine.Contains("text of heading")) // make sure you are not inserting heading in text box.. { textBox1.Lines = (string[])strline; // It will append line to textbox. } …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.