How to use OpenFileDialog?

Hi guys! This is a stupid problem, I guess…

I have a patch working with points, and I wanna save and load them (as 3D coordinates) in a txt file. I wanna open the filedialog everytime I press LOAD or SAVE button.

How can I know when I pressed the Open botton on the OPEN window (on saving)? I have only the path as output, so I can see when I change the path… But what if I don’t change the path? I mean, when the Open window is already on the right file?

p.s. try to open the A.txt file, and save it ad “C.txt”
then open the B.txt file, and try to overwrite the “C.txt”

FileOpenProblem.rar (19.0 kB)