[net.micro.pc] touching files

markz@microsoft.UUCP (Mark Zbikowski) (08/25/84)

	Does anyone know of an easy way to "touch" a file in MSDOS?
	i.e to modify the time stamp to the current time.
	There must be some clever dos call that will do such a thing.

Two ways:

o   Ugly:  Open file for I/O, read first byte, seek back to 0 and write it back.

o   Clean(er): Open file (open system call) get current date/time (getdate and
	gettime system calls) set the time on the handle (filetimes system call)
	and close it.