Pro-tip. I have seen your past work. Best practice is to NOT directly edit a file on the disk. What you should do, is instead read the file into a byte array.
Cyclone wrote:I'm curious... what is wrong with editing the file directly on the disk?
Imagine working in notepad. You open a file for reference and copy+cut everything to use elsewhere. You forget to paste it back in. Now that file is empty sitting on your disk.