Added {} around the file handle when printing to file handle