Hi all, I joined the forum today. I have a question whether two file reads will take more time than a single file read for same data size or vice-versa. Thanks in advance.
Of course it will. That is like me asking if it will take you longer to carry my books up some stairs in two trips instead of one trip. ;-) This problem could get worse if I asked you to perform a second task in between trips! (Like another program making a disk operation during your software's disk operations. This could cause the harddrive to seek to another sector and then have to seek back to the original sector to continue your second read.) Of course if you are doing only a few file operations occasionally, you will never notice. So it might not be worth your time to optimise. However, for any intense applications like database systems, or large file handling for video editing, graphics editing, etc.. you will want to carefully analyze your code for any place it could be possible to simplify it and reduce disk activity. - Ben