i have a VB file of rec len 80 with the following recs.
C;007788999;TEST NAME NAME1 ;14785/111111111111111
D;111222333;TESTNAME NAME23 NAME7 ;25896/333333333333333
;321654987;TESTTEST NAME NAME4 ;36912/555555555555555
D;111222333;TESTNAME NAME23 NAME7 ;25896/333333333333333
;321654987;TESTTEST NAME NAME4 ;36912/555555555555555
i need to replace the first character with a number (C to 1, D to 2, anyother value including space to 3) and remove the trailing spaces that appears after the name, giving the output as below
1;007788999;TEST NAME NAME1;14785/111111111111111
2;111222333;TESTNAME NAME23 NAME7;25896/333333333333333
3;321654987;TESTTEST NAME NAME4;36912/555555555555555
2;111222333;TESTNAME NAME23 NAME7;25896/333333333333333
3;321654987;TESTTEST NAME NAME4;36912/555555555555555
Thanks in advance