1. 사용방법
private void readFile(string filePath)
{
string line;
StreamReader file = new StreamReader(filePath, Encoding.Default, true);
while ((line = file.ReadLine()) != null && !line.Equals(""))
{
// Do Something!
}
file.Close();
}
'프로그래밍 > C#' 카테고리의 다른 글
[C#] Selenium WebDriver 느리게 입력 ( 타이핑 효과 주기) (1) | 2019.01.05 |
---|---|
[C#] 파일 특정라인 변경하는 함수 (0) | 2019.01.04 |
[C#] 프로세스(Process) 종료 하는 메소드 (0) | 2018.12.25 |
[C#] Selenium ChromeDriver Option 옵션 정리 ( Proxy 변경법 포함) (0) | 2018.12.25 |
[C#] Selenium을 이용한 브라우저 크롤러 만들기 환경 구축 (0) | 2018.12.25 |