My one regret in life is that I am not someone else. - Woody Allen
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP
K. Tsang wrote:You didn't flush the output so the file is empty.
But now without flushing it is writing, why ?, i know only that try with resources automatically close the resources, but does it call flush also ?