(C언어) read, _read: 파일에서 데이터 읽기
#포함하다 int read(int 핸들, void *buf, unsigned len); read 함수는 hanle이 지정한 파일에서 len 바이트의 문자를 읽고 buf에 저장합니다. 텍스트 모드에서 파일을 열 때 캐리지 리턴을 제거하고 Ctrl_Z를 만나면 EOF를 반환합니다. 읽기 기능이 읽는 바이트의 최대 크기는 65,534바이트입니다. #include <stdio.h> #include <string.h> #include <fcntl.h> #include <sys/stat.h> #include <io.h> int main() { int handle; char s(100) … Read more