Open
Description
Describe the bug
The touch
utility is meant to merely update a file's modified time, or create it if it doesn't exist, with no changes to the contents. ftouch
should do the same, but seems to clobber the file contents. Really a pawn-lang bug.
To Reproduce
new File:f = fopen("moo.txt", io_write);
fwrite(f, "hi");
fclose(f);
ftouch("moo.txt");
Expected behavior
File contents should remain.