开发者

Android Write files

开发者 https://www.devze.com 2023-01-16 05:02 出处:网络
I write file to sdcard using BufferedWriter.After that I want to overwrite header of file,but other data must be without changes( In the header I must add size of file). So I think I must change posit

I write file to sdcard using BufferedWriter.After that I want to overwrite header of file,but other data must be without changes( In the header I must add size of file). So I think I must change positio开发者_Go百科n where I need write.

How can I do that?What function should I use?


You can use a RandomAccessFile to access a file, and modify it.

0

精彩评论

暂无评论...
验证码 换一张
取 消