Hi,
Have you looked at the WriteFile function? Here's the documentation for that function:
This function writes the specified number of bytes to a file from a string buffer.
CAUTION: The Windows SDK also contains a WriteFile function. If you include windows.h and do not include formatio.h, you will get compile errors if you call the WriteFile function.
/*-------------------- Prototype ---------------------*/
int WriteFile (int File_Handle, char Buffer[], int Count);
Or, if you are writing an array to a file, I would suggest the ArrayToFile function. There is a good example program in CVI under Fundamentals >> File Input and Output >> arrayfile.prj that demonstrates this function.
Note that if you right-click on any function panel, the Funct
ion Help is automatically displayed for that function. The same is true if you right-click on a particular control input.
Good luck!
Kileen C.
Applications Engineer
National Instruments