I think I found out the problem. It was not about the code. It seems notepad is not a good choice when you have a large data file. Notepad++ displayed the file correctly with all the columns aligned. Thank so much for your help snippsat.
Kind regards,
Kind regards,