I have a C structure.
struct data{
double value1[50];
double value2[50];
int count;
};
I want to map data from java to this C
While there is nothing wrong with the CSV format to receive data from different programs, I lean toward using XML to do it. Part of it is subjective preference for the data format. With XML you can define a robust construct that you can validate before you read into your program. And IMHO, a proper XML design is much more readable for debugging purposes.