看板 MacDev 關於我們 聯絡資訊
請問在 iPhone 的執行環境下, 如果要以 fopen() 存取 bundle 目錄中的各種自訂資源, 應該要怎麼做呢? 例如在我的 xxx.app 中,有個自建目錄叫做 data, 如果我要用 fopen() 存取 data 底下的 mydata.xml 要怎麼做才對? 我嘗試這樣做: FILE* fp = fopen( "data/mydata.xml", "rb" ); 但是讀不到檔案。 Orz -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.62.87.110
yllan:Get your path via NSBundle 04/21 17:39
HalfLucifer:thanks~ 04/22 16:46