01-25-2013 04:50 AM
Hi,
I have 700 2D double array to save and i would like to save them in 700 differents files with .dat (binary) extension. I know that i can save an array in binary format but by using a dialog box which opens a window so that i can choose the file. Since there are 700 array i don't want to be oblige to select the right path every time.
I'm using a dialog box to create a folder where i want to save the 700 files. For the time being i save the 700 arrays in 700 differents text file by using the VI "write to spreadsheet file" and i works well but it creates text files..
Is there any way to make the same thing but by saving the data in binary file and without using a dialog bow for every single file?
Thank you in advance
Solved! Go to Solution.
01-25-2013 05:07 AM
Use write binary file vi to write in binary. http://zone.ni.com/reference/en-XX/help/371361J-01/glang/write_file/
You could ask the user to select the folder as you do below and then programatically build file paths, something like this: