reading data from text file .. help plz
Hi every body ,,
Happy Valentine Day
I'm new member and I really I have no clue in JAVA. I have download BlueJ and the JDK ,,,
I'm trying to do the following :
I want to Implement the following problem in Java.
I have two files , employe.txt and transaction_file.txt
The master employe.txt file has the following layout:
Employee_ID_number, Last_Name, First_Name, Salary, Number_Dependents, Department,
The transaction_file.txt has the following layout:
3982, A, Fred, Lincon, 56534, 1, Shipping
0192, U, cooper
0190, A, abdul, Tilli, 89855, 0, Accounting
A = Add a record
U = Update a record
D = Delete a record
I want to make a progame which can read the files. no user input. The I can just pass through the employee file and one pass through the transaction file in a staggered stair step fashion. In other words I don't want take the first transaction record and search all the way through the employee list, then take the second transaction record and search all through the employee list again, and so on. I hope you got my idea ...
The program should generate the following transaction log.
1657 D record not deleted, record does not exist
3982 A record not added, record already exists
0192 U record Updated.
0190 A record Added
I really spent 48 hours trying to do it but I could not
Could you help me please ??!!