Now this is an example of a vi that is vastly overblown in size (sorry, don't mean to be so critical, just helpful). How can you make heads or tails with a vi that is this large? First you should try to break the vi into sections that can be made into subvi's. Then call the subvi's from a main vi. It would be much more manageable. As for your problem, instead of using the generic function Write To File, use the Open/Create/Replace File function at the beginning of your code, then use the File Write function to write wherever needed, then use File Close at the end. You will have to wire the refnum output of the Open/Create/Replace File function to each File Write function and to the Close File. This way, only one file will be written. The way you have your vi structured, you may have a problem with two sections trying to write to the file at the same time. You would benefit greatly by reducing this huge vi into several subvi's. It will be much easier to maintain and read, and it will be easier to ensure that you won't have a problem with two or more sections trying to write to the same file at the same time. Using subvi's instead of one huge "do it all" vi is the proper programming technique. Do this. You will be glad you did in the long run. Your future programming projects will become much easier.