Sign in to follow this  
Followers 0
friends

FileSaveDialog()

5 posts in this topic

by using FileSaveDialog with the option "Prompt To Overwrite if file exists",

I found out that the contents is appended into the file but not overwritten it.

I wonder if it is a bug or user has to do the checking on their own ?

I assume that with the feature "overwrites if file exists" would totally

write a new content into file.

Pls advise.

Share this post


Link to post
Share on other sites



by using FileSaveDialog with the option "Prompt To Overwrite if file exists",

I found out that the contents is appended into the file but not overwritten it.

I wonder if it is a bug or user has to do the checking on their own ?

I assume that with the feature "overwrites if file exists" would totally

write a new content into file.

Pls advise.

Can you post a small script that reproduce the behavior you are facing?

Thanks :D

Share this post


Link to post
Share on other sites

This is not a complete code. But when I use it to write the content using FileWriteLine() to be saved as a .reg file

it will append the data into the file, instead of overwritting.

FileSaveDialog ("Export Registry File", @MyDocumentsDir, "Registration File (*.reg)", 24, "Cash Drawer.reg")

sorry.... cos not providing complete coding. I will try to reproduce the coding and put it up here.

Share this post


Link to post
Share on other sites

AFAIK

FileWriteLine() is a completely seperate issue to FileSaveDialog().

FileSaveDialog() does not need FileWriteLine() because it saves the complete file with the name you input....

maybe you want FileOpen() to use with FileWriteLine()

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Thanks for your information. I'll try that out....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0