i have a text file … which storing data like..
E:0
S:0
R:0
G:0
E:1
S:1
R:1
G:1
and so on till 50. I can read it by
StramReader.ReadLine();
but how i can read the 1st line
E:0
and skip to the next E: , without getting the in between things
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is this way. But this will go through each row and select the rows that contains E
(Using namespace System.Linq and System.IO)
More info about the File.ReadAllLines from msdn : http://msdn.microsoft.com/en-us/library/system.io.file.readalllines.aspx