Click here to Skip to main content
12,944,991 members (49,719 online)
Click here to Skip to main content

Tagged as


34 bookmarked
Posted 9 Jan 2012

Counting Lines in a String

, 18 Jun 2012 CPOL
It seems like an obvious requirement, but the .NET framework will not count occurrences of a character in a string. It's easy to do, but which way is the quickest?



Compare Revision Minor Date Status Editor
9 - publicly available No 2-May-13 7:00 Available Deeksha Shenoy
Updates in content. 70 changes had been made.
8 No 17-Jun-12 21:45 Pending OriginalGriff
Fixed formatting of code section (don't know what happened to it there) and Revision history reformatted
7 No 17-Jan-12 9:23 Available OriginalGriff
6 No 16-Jan-12 21:22 Available OriginalGriff
5 No 10-Jan-12 8:57 Available OriginalGriff
4 No 9-Jan-12 10:25 Available Deeksha Shenoy
2 No 9-Jan-12 1:15 Available OriginalGriff
1 No 9-Jan-12 0:50 Available OriginalGriff


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170518.1 | Last Updated 18 Jun 2012
Article Copyright 2012 by OriginalGriff
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid