看板 [ java ]
討論串[問題] RandomAccessFile 寫中文的問題
共 7 篇文章
首頁
上一頁
1
2
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者qrtt1 (foolish)時間19年前 (2006/03/30 08:14), 編輯資訊
0
0
0
內容預覽:
(舉手) 請問您要怎麼確定,插入的n-th byte的點不是中文字的'中間'. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 163.26.34.214.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者AI3767 (AI3767)時間19年前 (2006/03/30 02:59), 編輯資訊
0
0
0
內容預覽:
改成 ras.write(sb.toString().getBytes());. 試試看. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 140.123.219.115.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者NightPrince (shooting star)時間19年前 (2006/03/29 23:59), 編輯資訊
0
0
0
內容預覽:
orz. try. {. File file = new File(FILEPATH);. RandomAccessFile ras = new RandomAccessFile(file , "rw");. ras.seek(ras.length()); // 這邊是以檔案的最後做範例. Stri
(還有52個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者qrtt1 (foolish)時間19年前 (2006/03/29 22:51), 編輯資訊
0
0
0
內容預覽:
我是指RandomAccessFile的部分... --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 163.26.34.20.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者NightPrince (shooting star)時間19年前 (2006/03/29 22:32), 編輯資訊
0
0
0
內容預覽:
你是說 FileWriter 的嘛. try. {. File file = new File(FilePath);. FileWriter fw = new FileWriter(file,true);. StringBuffer sb = new StringBuffer();. .. .. .
(還有60個字)
首頁
上一頁
1
2
下一頁
尾頁