Vector is just a data structure. It cannot be used to read/write employee records from/into files. It can, however, be used to keep employee records in memory.
To implement the functionality that you need, you need to:
-
Think on how the employee records are represented in file. Is it in CSV? XML? JSON?
-
Once you decide the representation, you need to write two methods. One that reads the file, and returns employee records in a Vector. Two that accepts employee records, and write them into file.
-
Write the main program that operates on this Vector.
solved Edit record employee on text file using Vectors in Java [closed]