Writing an 8 Column array into a data file [message #87560] |
Fri, 14 February 2014 20:14  |
drewciampa
Messages: 9 Registered: February 2014
|
Junior Member |
|
|
I'm trying to write a large array into a data file.
The array is 8 columns with up to 6000 rows. I have tried to do this using printf mainly. Now below you will see a main problem with one of the columns, but overall the 8 columns keep stacking. I can't seem to get 8 individual columns with 6000 rows, each column having the correct set of data. Instead I get 8 columns where the data is being written horizontally instead of vertically.
An even bigger problem I am having is trying to printf an array of hexadecimal values into a data file. The values '2b40e2200ff00007' are only showing up as ' 2' in the data file. It seems that the printf function is only writing the first digit. I've been using the 'Z' format code just FYI.
PS. the 8 column array was constructed from 8 separate arrays each containing 6000 values.
Thanks in advance
|
|
|