beam,
Another technique is to leave the file opened as long as acquisition occurs and use the Flush File function once in a while to force any buffered data to be written on disk and the file directory entry be updated. Flush File does the same work as Close File except it doesn't destroy the file refnum, leaving the file opened. If the system crashes, you will recover data written prior to the last Flush.
When opening a file for a long period of time, you should open the file setting the mode to "deny read/write". That will prevent other file sweeping applications (backup, anti-virus, Fast Find) to open the file simultaneously and temporarly deny you write access to the file.