This is really working
Changes in writing the File

The data used to get completely printed on 1 line, fixed that.