TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Yaseen Staggie
NA
1
1.1k
Reading from a textfile and writing to another textfile
Feb 18 2014 10:53 AM
I have Data in Notepad that looks like this
and im writing it to an output file
01 some Data
02 some Data
02 some data
03 some data(End of client 1)
01 some data
02 some data
02 some data
02 some data
03 some data(End of client 2)
I wana count howmany times the value 02 appears and display it after The end of each client
Im using this piece of code to count (
int
count =
File
.ReadLines(
@"C:\Exercises\gamenam.dat"
).Count(line => line.StartsWith(
"02"
));)
I want to know how do you display it after the end of each client?
Can you maybe guide me how to this?
Reply
Answers (
2
)
comparing CSV files
How to use a structure constructor in an array of structures