I'm currently trying to build a DAO based application where you use a text file as a data source.
It have worked out well until I tried to delete lines from the file.
I've managed to fill out the temp file with everything except the line I wanted to remove, but when I try to replace the original file with the temp
file it won't work. It casts the error: "temp.txt -> databilar.txt".
I've also tried to use the renameTo method without any success...
It have worked out well until I tried to delete lines from the file.
I've managed to fill out the temp file with everything except the line I wanted to remove, but when I try to replace the original file with the temp
file it won't work. It casts the error: "temp.txt -> databilar.txt".
I've also tried to use the renameTo method without any success...