When I update little binary or text files, I commonly overwrite the whole file with the new content even when just a small fraction of the file was changed. I do so because it is easier to overwrite the file contents than keeping track of the positions of every little piece of data inside the file.
I think this is not a problem when the file size and update frequency are not that big, but I should pick another file update technique when dealing with big files and short update periods.
I'd like to know when should I start worrying about the way I'm updating my files. What criteria should I use to decide between this whole file overwriting update and a more elaborate and efficient technique?