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.
精彩评论