DKrohn Posted July 16, 2013 Share Posted July 16, 2013 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 More sharing options...
AzeoTech Posted July 18, 2013 Share Posted July 18, 2013 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.