System::IO::File::ReadLines 메서드

File::ReadLines method

지정된 텍스트 파일의 내용을 지정된 문자 인코딩을 사용하여 줄마다 읽고, 파일 내용의 각 줄을 나타내는 문자열 컬렉션을 열거형으로 반환합니다.

static SharedPtr<Collections::Generic::IEnumerable<String>> System::IO::File::ReadLines(const String &path, const EncodingPtr &encoding=Text::Encoding::get_UTF8())
매개변수형식설명
경로const String&읽을 파일의 경로
encodingconst EncodingPtr&사용할 문자 인코딩

ReturnValue

지정된 파일의 내용을 나타내는 문자열의 열거 가능한 컬렉션

또 보기