Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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.

Posted

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

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
×
×
  • Create New...