Hello i am using the File class in java to write a txt file with over 100,000 lines of information. I am on fedora linux. While the file is being written to i don't want it to be allowed to be read until it is fully completed.
I thought setting the setReadable(false) before having the file be written then at the end setting it to true would work but it did not does anyone know how i can do this correctly
Thank you.