How to validate the connection string comming from a text file
there is a way by which we parse any time input given by user...

here i am taking the input of a connection string from a text file

i am supposed to assume that the user who keeps this string in the text file can be trusted.

but what if he makes a typo a mistake unknowingly, that will cause the coming code to cause exception,

i would like a way to check the string for the correct format, like parse it some way to see if it is the way an connection tring should be, and then possibly use that parsed result.




How to validate the connection string comming from a text file
===

there is a way by which we parse any time input given by user...

here i am taking the input of a connection string from a text file

i am supposed to assume that the user who keeps this string in the text file can be trusted.

but what if he makes a typo a mistake unknowingly, that will cause the coming code to cause exception,

i would like a way to check the string for the correct format, like parse it some way to see if it is the way an connection tring should be, and then possibly use that parsed result.



