System::IO::File::ReadAllLines 메서드

File::ReadAllLines method

지정된 텍스트 파일의 내용을 지정된 문자 인코딩을 사용하여 줄마다 문자열 배열로 읽어들입니다.

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

ReturnValue

각 요소가 지정된 파일의 단일 줄을 나타내는 문자열 배열

또 보기