討論串[問題] I/O in C
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓3(3推 0噓 3→)留言6則,0人參與, 最新作者dozer (rezod)時間18年前 (2006/11/28 15:36), 編輯資訊
1
0
0
內容預覽:
想要在一個用fopen打開的檔案中. 插入一行字. 比如說 原本的檔案長這樣. first line. second line. @. lastline. 想要在@前面加入一行 third line, i.e.. first line. second line. third line. @. las
(還有90個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者jenallen (新莊男)時間18年前 (2006/11/29 11:19), 編輯資訊
0
0
0
內容預覽:
一次讀一行?不過這樣file I/O會很多...如下:. #include <stdio.h>. #include <stdlib.h>. //回傳此行幾個char,包括'\n'. static int getline( char *const str, FILE *fp). {. int i =
(還有390個字)
首頁
上一頁
1
下一頁
尾頁