02-22-2019 08:51 AM
I just wanted to verify that fclose() is the proper way to clean up resources as opposed to CloseFile().
The documentation kind of leaves the correct protocol up in the air.
Greg
02-23-2019 04:03 PM
If I understand correctly, you are trying to open a file with OpenFile, translate the handle with fdopen and then write/read to/from it with standard C functions. Am I right?
Just out of curiosity, why are you using such a complicated pathway? Couldn't you simply use fopen instead?
03-01-2019 09:44 AM
File format consist of text for the header with a single key stored per line (<1000 lines) followed by one or more data chunks of 32Msample or greater as binary int16 or real32 as detailed in the header.
I find it easiest to use ReadLine and WriteLine for the header and speediest to use ANSI C read / write for the chunked data.
fclose after fdopen seems to clean up any noticeable overhead.
03-01-2019 10:55 AM
Ok, thank you. Today I learned something new