Reading Digits from String ... HELP!!!

Feb 13 2007 7:26 PM

Hi guys,

I'm kind of new at this and I seem to have very small experience on the C# language... I hope someone can help me out.

I need to built a console application that will read a card number with the following format ( 999-999999-9). The program needs to identify the la number which the verification digit . With the digit it determine if the card number is valid or not.

I started out using a long variable but it wont accept the "-"  so i decided to use a string which it can take the entire statement as the software requires. How i can read the digits ignoring the "-" and storing the last number on a seperate variable?


Thanks


Answers (1)