0

How can I delete elements in a binary files in Java?

Im writing a code that creates a binary file that contains info of people that owns an acount at a bank... y want to delete those acounts that have no money in... i want to creat an other binary file where i can copy those acounts that HAVE money in, then rename it as the first binary file, and then delete the first file but i just dont know how (looked it in internet but i found nothing). If there is actualy no way to do it... what can i do?

28th Nov 2018, 3:33 AM
Juan José Fernández
1 Réponse
0
Read and parse the file Remove any element you want Then overwrite the file using that data
28th Nov 2018, 3:49 AM
Taste
Taste - avatar