feature: write to the same file that you are reading from.