I have a text file as below.
Name :Kiran
Id :1000
Address :Karol bagh Delhi
Contact No. :9876612338
Band :L1
Salary :20000
Project :USM
Type :Permanent
Name :Tarun
Id :1001
Address :Tarol begh Kolktta
Contact No. :9876692338
Band :L2
Salary :30000
Project :GSM
Type :Permanent
Name :Pavan
Id :1002
Address :Cottonpet Bangalore
Contact No. :9889612338
Band :L3
Salary :40000
Project :PKM
Type :Contract
I want to read Id & salary for every employee's record?How can I do this using file I/O or any other way?