Original Poster
Posted 2003-08-01 00:00 · 中国 河南 驻马店 联通
金牌会员
★★★★
龙哥DOS
Credits 4,289 Posts 1,501 Joined 2003-02-23 00:00 23-year member UID 983 Gender Male From 河南省
Status Offline
Question for everyone:
How do I use C to read and write a text file in a specified directory? Please give an example. Many thanks!
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
C++ ☆☆☆ 中国DOS联盟成员 ☆☆☆ C++
C++ ★★★ 爱提问的红色狂想 ★★★ C++
C++C++C++C++C++C++C++C++C++C++C++C++C++C++C++
Floor 2
Posted 2003-08-01 00:00 · 中国 安徽 滁州 天长市 电信
银牌会员
★★★
Credits 1,835 Posts 648 Joined 2002-11-08 00:00 23-year member UID 197 Gender Male
Status Offline
Take a look at this
http://beckenglish.51.net/cbook/book/ch12.htm
Floor 3
Posted 2005-10-07 22:09 · 中国 上海 松江区 电信
新手上路
★
Credits 13 Posts 6 Joined 2005-10-06 13:48 20-year member UID 43162 Gender Male
Status Offline
C can handle many file formats. You just need to use FOPEN(). There's nothing difficult about it.
fgets(),fgetc(),fscanf().
Forum Jump:
— Select —
站务公告 & 版主讨论
意见反馈 & 网友交流
DOS学习入门 & 精彩文章 (教学室)
DOS疑难解答 & 问题讨论 (解答室)
DOS启动盘 & LOGO技术 (启动盘室)
DOS批处理 & 脚本技术(批处理室)
DOS媒体世界 & 网络技术 (多媒体室)
DOS汉化世界 & 中文系统 (中文化室)
DOS开发编程 & 发展交流 (开发室)
DOS软件下载 & 游戏分享 (下载室)
GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区
其它操作系统综合讨论区
WinPE、PowerShell及其它命令行系统专区
贴图灌水、文学娱乐专区
网络日志(Blog)
论坛回收站
├ 链接失效,待修正