How can I make sure a file writing process has fully finished in a python script? In my case, a few lines later in the same script that same file might get read.
Will a with statement work in this case? An objection might be that allthough the with-statement may have made sure a file.close command is issued it might take some time for the OS to complete the command and in the mean time a read process on the file might have initiated.
Any thoughts?