T
taxidermist
I am using the code example from http://support.microsoft.com/kb/161286/
It will open a file dialog for a user to select or type in a
filename. It works fine. However when the user types in the name of
a file that does not exist like "testfile" it will save it as
"testfile". What I need to be able to do is save it as "testfile.txt"
instead.
I thought it would be as simple as triming the filename and adding ( &
".txt" ) to the end of it but that seems not to be the case.
Can you please tell me what I need to do to make it save with the .txt
if the user does not type it in?
Thanks.
It will open a file dialog for a user to select or type in a
filename. It works fine. However when the user types in the name of
a file that does not exist like "testfile" it will save it as
"testfile". What I need to be able to do is save it as "testfile.txt"
instead.
I thought it would be as simple as triming the filename and adding ( &
".txt" ) to the end of it but that seems not to be the case.
Can you please tell me what I need to do to make it save with the .txt
if the user does not type it in?
Thanks.