does anyone know how to set the time-stamp of a Linux (text) file to an arbitrary value, not necessarily the current time, using C#?
For example, could I run code to change the timestamp of filepath/foobar to Thu 04 Oct 1995 09:15:00 AM CDT?
Preferably, this would work for both the accessed and modified stamps.
Thank you!
If I am understanding the question you would want to use File.SetLastWriteTime(). More information on it can be found here http://msdn.microsoft.com/en-us/library/system.io.file.setlastwritetime.aspx