accelerator_operator Posted February 4, 2010 Report Share Posted February 4, 2010 I am writing a vi in which a data file needs to be replaced each time the vi is run. I'm using the "Write Characters To File vi" but a dialogue box keeps appearing saying, "Replace Existing filename.txt." I thought if I wired a False constant to "Append To File?", the vi would automatically replace the previous data in the file, is this correct? I do not want the user to have to click on "Replace." Thank you. Quote Link to comment
Cat Posted February 4, 2010 Report Share Posted February 4, 2010 Two possible options: 1) Delete the file before you replace it 2) Break into "Write Characters to File.vi" and write your own version where "General Error Handler.vi" has "no dialog" as the "type of dialog" input. Quote Link to comment
accelerator_operator Posted February 6, 2010 Author Report Share Posted February 6, 2010 Cat, Thank you for your suggestions. I went with # 2 and it seems to work best for my problem. Thanks again. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.