Create an automatic migration script from the old `.txt` file to `.json` so that existing users can keep their old data. **To-do:** - [x] Read `data-karyawan.txt` if it exists. - [x] Parse each line and convert it into an array of objects. - [x] Save the result to `data-karyawan.json`. - [x] Display a success message and the number of records converted.
Create an automatic migration script from the old
.txtfile to.jsonso that existing users can keep their old data.To-do:
data-karyawan.txtif it exists.data-karyawan.json.