in reply to Two Column Data

You are taking about files, but seem to be using arrays. Can we assume that the data files have been loaded into the arrays?

Note that you are using the printf function where you can probably use the easier print function.

As for the content of your question, it might be easier to answer if you gave us some samples of your data.

Je suis Charlie.

Replies are listed 'Best First'.
Re^2: Two Column Data
by PilotinControl (Pilgrim) on May 11, 2015 at 19:01 UTC

    Yes, the data has already been put into the arrays and the data from file 1 needs to be in column one and data from file 2 needs to be in column 2. My issue has to do with column formats.

      What you want to do is still not clear to me.
      the data from file 1 needs to be in column one and data from file 2 needs to be in column 2
      Yes, but your code seems to be splitting the data from both files. Do you want only one part of the data from both files? If so, which one?

      Do you files have the same numbers of elements and can it be assumed that we can just marry the nth line of file 1 with nth line of file 2 to produce the nth line of the output file?

      Je suis Charlie.

        The desired output should be this:
        =====================
        TRACK 1 | TRACK 2
        =====================
        B&O 101 | CSXT 1001
        =====================
        The data from File 1 needs to be in column 1 and the data from File 2 needs to be in column 2

      Please do not change your original post after you have received some answers, or if you do, please indicate clearly with an update tag what you have added. You are now making me look as a fool because I asked questions whose answers appear to be in the original post, but were not there when I asked the questions.

      Update: Thank you for having now marked your updates and having done so quickly.

      Je suis Charlie.