Running the file merging application in Windows XP!

Could u add up for the following ?

The enabling/disabling of write cache is programmers responsibility or it set with system settings itself?

Usually the cache efficient code provide better cache use (Less Miss and More Hit)-will it improve the performence in the file merging?

What are the guide lines to write down the cache effective code for applications like file merging?