c_fopen

c_fopen (파일 열기)

fopen()은 파일을 열어 파일 스트림을 만들어요.

출처: cppreference

본문

fopenfilename 파일을 모드 mode로 열어 std::FILE*를 반환해요.

std::FILE* fopen( const char* filename, const char* mode );

모드에는 읽기 r, 쓰기 w, 추가 a, 이진 b 등이 있어요. 열기에 실패하면 nullptr을 돌려줘요.

더 알아보기 (Learn more)

cppreference