Can any one please let me know whether I need to use fopen() and related functions to open the file, write and read operations or CreateFile() and related functions when working on Windows. Which set of functions are better and what are the advantages.