Is there an easy way to write to the top of a file with FileOutputStream?
This option
FileOutputStream fos = openFileOutput("Activity.log", Context.MODE_APPEND);
appends to the file (writes to the end). But I cannot find an "automatic" option to write to the beginning of the file instead. Is there one, or do I have to take it down a notch and calculate the start and end indexes etc. and write "bit for bit"?