>This assumes that the user has some kind of brain.
You mean the hypothetical imaginary user that university professors use to avoid teaching students the reality of error checking? I've never met such a user in real life.
>you have to detect the period character in the entry string with strchr()
Filenames with multiple periods are common. A perfectly valid filename would be destroyed by this method, resulting in an obscure error.
I have seen a lot of error-checking mistakes in the computer labs. And also agree that multiple extensions .here.there are possible too. Also might want to make sure that you are not overwriting a legitimate file that may already exist.
>I am eagerly waiting for Narue's and Christian's solution of Alfarata's problem!
The design is flawed to begin with. There's no good solution. If you ask the user for a filename, it's only reasonable to require the full path. If you require the full path then what possible use could you have for discarding the extension and tacking on .csv? What if it's not a CSV formatted file?
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...