討論串[問題] fortran的讀檔,如何不覆蓋原來檔案的資料
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者yenwang (Anson)時間18年前 (2008/02/07 00:58), 編輯資訊
0
0
0
內容預覽:
這個問題如果你使用fortran90的語法可以解決. 主要open(unit=1,file="filename",position='append'). 利用Position的語法. 可以控制開啟檔案讀寫的位置. 基本上position='rewind'代表將讀取位置移到檔案開頭. 而positio

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者WPC001時間18年前 (2008/02/06 10:06), 編輯資訊
0
0
0
內容預覽:
in c++. High level :. ofstream + ios:app. fopen() + "a+". Low level:. _lseek()+ _O_APPEND. CFile::Seek()/SeekToEnd()+CFile::modeNoTruncate. in Fortran

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者inertial (啦啦啦…)時間18年前 (2008/02/05 18:56), 編輯資訊
0
0
0
內容預覽:
想請教版上熟悉fortran的大大. 在fortran中,要開啟檔案寫入資料時. 常用. open(unit=1,file="filename",status="old"). .... close(1). 或. open(unit=1,file="filename",status="old"). .
(還有28個字)
首頁
上一頁
1
下一頁
尾頁