声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3546|回复: 2

[编程技巧] 往txt文件中写回车怎么没有用?

[复制链接]
发表于 2007-5-30 17:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
往一个txt文件中写文件的时候怎么总回车总没有用?
连fprintf(fid,'\n');也不行,但是\t可以写出来,怎么回事呢?
软件的问题?


解决了,w和wt的具体区别是什么?
fopen里面没有看到有 wt的 permission啊

[ 本帖最后由 spano 于 2007-5-30 18:09 编辑 ]
回复
分享到:

使用道具 举报

发表于 2007-5-30 19:08 | 显示全部楼层
原帖由 spano 于 2007-5-30 17:52 发表
往一个txt文件中写文件的时候怎么总回车总没有用?
连fprintf(fid,'\n');也不行,但是\t可以写出来,怎么回事呢?
软件的问题?


解决了,w和wt的具体区别是什么?
fopen里面没有看到有 wt的 permission啊



fid = fopen(filename, permission_tmode) on
Windows systems, opens the file in text mode instead of binary mode (the default).
The permission_tmode argument consists of any of the specifiers
shown in the Permission Specifiers table above,
followed by the letter t, for example 'rt' or 'wt+.
 楼主| 发表于 2007-5-30 19:26 | 显示全部楼层
晓得了,谢谢eight
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-10-3 06:28 , Processed in 0.062363 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表