Here's a problem with saving a file. If, for example, the user makes the mistake of typing more than two '.' as a filename and nothing else it results to tons of error. If I use valind filename it's OK.
How is this catched if I use a try-catch block? Or better still, how do I prevent this from happening? I tried the same test on Word/Wordpad and the way it behaves is that it doesn't do anything.