标题:非缓冲文件
取消只看楼主
xiaotech
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2008-9-23
 问题点数:0 回复次数:0 
非缓冲文件
#include "stdio.h"


main()
{   int fd,n;
   char str[20]="hello,world";
if((fd=open("d:\\xiaotect.txt",1))==-1)//文件已经存在了的
printf("error");
    n=write(fd,str,10);
    printf("%d",n);
    getch();
}
为什么老是写不进文件呀
搜索更多相关主题的帖子: 文件 缓冲 
2008-10-08 21:04



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-237095-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.250330 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved