Force file flush after each entry