Currently I am browsing a file from my local machine and then copying it to another directory from where I am reading the file. But the copy process is not finished( considering the large size of file) and the reading has already started , so it fails giving me error and everytime I get the error from reading the file, it is on different line.
How can I start reading the file only after copying of the file has finished?
Is there a way to verify that copied file is the same size as of original file?