file operations in c and cpp