[問題] 請問一下讀檔的問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC2005
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
FILE *f = fopen(fileNane, "w");
有人要有隱藏檔案的要求所以我把檔案變成隱藏屬性
本來我以為只是檔案隱藏應該沒關係
結果我發現這樣無法開檔出來
但是讀沒問題
CFile file;
if (file.Open(fileNane,CFile::modeWrite|CFile::modeCreate))
{
file.Close()
}
結果一樣
其實我只要在開始前把檔案刪掉就可
但是有很多外部的程式也有用此檔
所以問問有沒有招式可以使用
不然就不隱藏了
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.251.70.82
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1443758691.A.4CC.html
推
10/02 15:39, , 1F
10/02 15:39, 1F
→
10/02 15:42, , 2F
10/02 15:42, 2F
推
10/02 21:03, , 3F
10/02 21:03, 3F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章
-3
16