07-22-2008
08:46 PM
- last edited on
08-12-2025
12:23 PM
by
Content Cleaner
I'm working on creating a binary file (little-endian) that will be read by other programs than LabVIEW. It simply starts off with a four character string 'iiii'. LabVIEW flattens the string and writes string length as prefix before writing the actual string:
'iiii' binary file: 00 00 00 04 69 69 69 69
I'd like to simply write:
'iiii' binary file: 69 69 69 69
The documentation talks of converting each character to decimal then to hexadecimal, then finally writing each char of hex string. I have not been successful in doing this. Please let me know if there's a clean way of writing strings to binary file without the Pascal string length prefix. Thanks!
07-22-2008 10:34 PM
07-23-2008 12:12 AM
07-23-2008 12:16 AM - edited 07-23-2008 12:17 AM
07-23-2008 08:23 AM