[C#]텍스트 파일의 라인수 구하기 예제 제목 그대로 텍스트 파일의 라인수를 구하는 예제 코드인데 정말 간단합니다. int count = File.ReadAllLines("D:\\test.txt").Length; C# 2016.01.28