You can use the GetFileTime API to read the original timestamp and SetFileTime to set it back to that timestamp after you are done with the file.
HTH
>I am using CFile files:
>
>
CFile myFile;
>myFile.Open(…);
>
>I modify the file here
>
>myFile.Close();
>
>When I modify myFile the “Last Date Modified” is changed to the time that modifications were done. How can I prevent that? I don’t want to change this date and time. Actually, I don’t want to show that I have changed the content of myFile.