A very nice work.
Thank you all : Keith Brown , MexicanCustard , gile and Jeff H for writing these different approaches .
Just a question to Jeff H , would not be better to have a break function in the foreach loop inside the if function to end the loops if any invalid char found in the file name ?
Congrats, Tharwat!
Thank you Mat(e) for your greetings .
I am regret about the time that I spent away from C# till now , although I have had lots of daily annoying messages and errors with VS.net till I got started understanding the mechanism between VS.net and AutoCAD .
Regards.