How can I define file name as 123.45 and extension as bmp or jpg?

For example if I create file 123.45.txt and open it in MSWord file saveas dilaog show the correct file name 123.45 and user can change file extension from txt to doc.