• Linux,  Programming

    [Linux] fseek / ftell 함수

    파일을 읽을 때 파일 구조체 내부엔 포인터가 존재하며, 해당 포인터를 옮기는 작업이 중요하다. fseek 파일을 읽기/쓰기 동작을 할 때 포인터의 위치를 변화시킨다. int fseek(FILE *stream, long offset, int whence); Option Description SEEK_SET 파일의…