04-28-2006 09:10 AM
04-29-2006 05:10 PM
In C, a string is an array of chars ended by a null char. In LV, it's represented differently. Normally, to get a string from an external function you would either configure the CLF node to return a null-terminated string or you would preinitialize a U8 array of the appropriate size and pass that to the function as an input. LV allocates the memory properly and fills your array and then you can use the Byte Array to String function to get your string.
I'm not sure how such a method would work on a file, but I would try to make the last three elements of the cluster 1D U8 arrays of the appropriate size and see if that works. I didn't see any null characters in the file, but it might work. Another option is to simply read the file and convert it yourself. Yet a third option would probably be to save the structure as plain ASCII and not as a C struct.