input the roman numerals from text file and convert it into arabic and again write it into text file in java

prakash1

Estimable
May 22, 2015
2
0
4,510
sample input should be like:

VL
MMCMXCIX
LIVX
DCLXXXVII


sample output should be like

Case #1: Invalid numeral: can't subtract auxiliary symbol.
Case #2: 2999
Case #3: Invalid numeral: two consecutive subtractions.
Case #4: 687