Text파일의 내용을 한줄씩 읽기

-- C# 2012. 9. 6. 10:39
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

string line;

string[] StrArr;


using (StreamReader sr = new StreamReader("sample.txt", System.Text.Encoding.Default))

{      

    while ((line = sr.ReadLine()) != null)     

    {

        StrArr  = line.Split(' ');

        ...   

    }

}


출처 : http://www.dongwoon.kr/tc/?/26

posted by 어린왕자악꿍