writeout also including current file. new records should be appended.