📜  文件描述符 linux c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:55.624000             🧑  作者: Mango

代码示例1
#include 
int main() {
    unsigned char buffer[16];     
    int fd = open (argv[1], O_RDONLY);
    read(fd, buffer, sizeof(buffer));
    return 0;
}