05-12-2006 01:52 PM
05-12-2006 02:05 PM
05-12-2006 02:11 PM
You've made some pretty obvious mistakes. First, your Open/Create/Replace File is set to "create or replace". The function means exactly what it says. If the file doesn't exist, create it and if it does exist, replace it. You don't have anything wire to the advisory dialog so every time it runs, you'll get a message asking you if you really do want to replace it. Second, you are using the Format Into File function. As the help mentions, you cannot use this to append data to a file. And, you have no data wired to it anyway so all you get is a header.
You don't have to use the Open/Create/Replace function each and every time. At the very beginning of the program, you can create the file once and then just use the Write File to append data. Use the Close File at the very end. You can also make things simpler by using the Write To Spreadsheet File function. It has an input for Append. You can use the Write File at the very beginning to write a header once and then call Write to spreadsheet and pass an array of data. It will do the formatting for you (adding tabs, etc.).