“嵌入式Linux基础实验”实验报告

Linux下文件IO基础

1.open (1)创建open.c文件 图片描述 (2)运行 图片描述 当test.txt文件不存在时,创建test.txt文件;文件存在时,报错。 2.read&write (1)创建rw.c文件 图片描述 (2)运行 图片描述 3.lseek&close (1)创建set.c文件 图片描述 (2)运行 图片描述

最新评论
暂无评论~