Data Storage

> The problem I'm running into is that if Windows 3.1 crashes while taking> data, the data is not automatically dumped into the data file. Thus I> end up with a file of nearly zero bytes (no data recorded).> > Is there a command, or a switch that automatically updates the file (and> file size) of the storage file during each storage phase.> > I'm currently running Vee 3.12 on a PC using Windows 3.1.

All you have to do is add the close command as the last command in your write file box. As long as you don't execute a rewind or close, it will append to the end of the file.

A better solution, however, would be to dump your data to an array, and every time it gets to a size of 50 or more, dump the array to the file (making sure to close the file after at the end, of couse:-) and then clear out the array. This way, you're not constantly openning and closing files.

> I've written a program that records temperature data versus time to an> ascii file.> > The problem I'm running into is that if Windows 3.1 crashes while taking> data, the data is not automatically dumped into the data file. Thus I> end up with a file of nearly zero bytes (no data recorded).> > Is there a command, or a switch that automatically updates the file (and> file size) of the storage file during each storage phase.

You might simply reduce the amount of disk cacheing (check your SmartDriveinvocation in AUTOEXEC.BAT). However ... what happens to the file duringthe crash is quite uncertain -- you might get some data, you might not.