I have a txt file like this in my project
Sample O/p :
30/12/2014 11:59:53
Barcode->'4987168011306' with package ->'Unit' is in Active Promotion for Branch 'DMCurepipe,ESPACE'
30/12/2014 11:59:53
Barcode->'6091230334014' with package ->'Unit' is in Active Promotion for Branch 'DMCurepipe,ESPACE'
I need auto identity no like 1,2,3 etc
Expected O/p :
30/12/2014 11:59:53
1)Barcode->'4987168011306' with package ->'Unit' is in Active Promotion for Branch 'DMCurepipe,ESPACE'
30/12/2014 11:59:53
2)Barcode->'6091230334014' with package ->'Unit' is in Active Promotion for Branch 'DMCurepipe,ESPACE'
i have created a new txt file to write a log and very next line i need to write error log with unique no just like 1,2,3 etc...i didn't use any loop to write auto no how to accomplish this???