open函数

fd = open("test.txt", O_RDWR | O_CREAT | O_TRUNC );//不存在则创建,然后以可读写打开;存在则以可读写打开,将长度截短为0.

posted @ 2012-10-19 21:13  helloweworld  阅读(129)  评论(0编辑  收藏  举报