There are a couple of ways. Actually in createnew() is not ANSI C, in ANSI C you would use fopen, then fwrite, etc. These functions are available in the ANSI C library. We also have File I/O functions in the Formatting and I/O library. OpenFile can be used to create a file as well.
Best Regards,
Chris Matthews
Measurement Studio Support Manager