📜  如何在 c 中使用 open 打开文件 - 无论代码示例

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

代码示例1
int main (void)
{
    int fd = open("path_name.c", O_RDONLY);  // the file is now open, you just need to read it
    return (0);
}