Writing table and content to 1 file and added spacing between them