![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-10-31 17:28 |
47,815 topics / 349,930 posts / today 0 new / 48,290 members |
| DOS开发编程 & 发展交流 (开发室) » [Help] How do I read and write a text file in C? |
| Printable Version 1,231 / 2 |
| Floor1 红色狂想 | Posted 2003-08-01 00:00 |
| 金牌会员 Posts 1,501 Credits 4,289 From 河南省 | |
|
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! |
|
| Floor2 LanE | Posted 2003-08-01 00:00 |
| 银牌会员 Posts 648 Credits 1,835 | |
|
Take a look at this
![]() http://beckenglish.51.net/cbook/book/ch12.htm |
|
| Floor3 ldy810 | Posted 2005-10-07 22:09 |
| 新手上路 Posts 6 Credits 13 | |
|
C can handle many file formats. You just need to use FOPEN(). There's nothing difficult about it.
fgets(),fgetc(),fscanf(). |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |