I would like create a table out of listing. This is the input:
Cluster 0
Sequenz 1
Sequenz 2
Cluster 1
Sequenz 3
Cluster 2
Sequenz 4
sequenz 5
Sequenz 6
Sequenz 7
And i want the output to be in tabular format where column one starts with the heading label "Cluster 0" and in the rows below there are sequenz 1 and 2. The next column starts with "Cluster 1" and has the Sequenz 3 in the row below and so on.
What approach and language would be best for this?
Its not clear how you like the output to be. Some like this?
This stores all data in to an array
data
then print it back out.