Linux基础IO--文件描述符fd/重定向

在学习文件描述符以前,咱们先来看一点其它相关的知识点。数组 咱们都知道,对一个文件咱们能够进行打开、读、写、关闭操做,在咱们没有接触Linux以前,将信息输出到显示器上,咱们一般能想到的方法有如下几种:数据结构 #include<stdio.h> #include<string.h> int main() { char *msg = "hello world!\n"; fwrite(msg,
相关文章
相关标签/搜索