Skip to content
Prev 320206 / 398506 Next

Columns perfectly aligned with the column names

Hi

Your code is not reproducible but it probably does not matter. You use tab as separator which means the file is readable directly by spreadsheet programmes (Excel). Reading them as text shall be OK unless some values are not so long that they exceed predefined tabs or unless they have some leading spaces which are unseen but which cause unaligning.

You can either read the file in Excel directly or to use some text formating tools (sprintf, formatC, ...)

If you read it to Word, you also can change text to table whoch results in aligned values.

Regards
Petr