Verify Export Write Completed


DKrohn

Recommended Posts

I write a set of variables to a text file after the completetion of a physical operation. If the export directory is not valid or the file is open, no data gets recorded and no error is displayed. Is there a way I can validate that the data was successfuly recorded? And, is there a way I can write to the file even if it is open in another window?

Link to comment
Share on other sites

For that sort of functionality you will likely need to write a little script using the File. functions described in section 9.9. Then you can easily test for failure to create the file. By "Another Window" I'm assuming you mean another application running on the PC? I know export sets will lock up the file, but I'm not sure if you use File. functions if the same thing occurs. A lot depends on the other application and whether it locked the file against writing.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.