03-26-2002 09:56 AM
03-26-2002 10:29 AM
03-26-2002 06:37 PM
03-19-2004 04:27 PM
05-11-2004 12:51 PM
05-11-2004 01:53 PM
05-11-2004 02:27 PM
05-11-2004 04:13 PM
05-01-2020 09:44 AM
This question comes up top of google searching for how to "touch" a file in LabVIEW. Let me know if resurrecting old questions like this is not the correct approach.
I've found writing the file size works. This doesn't change any other file properties or the inode of the file, so as far as I can see does the same as touch. If the file doesn't exist it's created empty, same as touch.
I can't see any reason for a performance issue on this code (I did a quick test on a 0.8gb log file I had as well). There's potentially an issue if you're writing to the same file at the same time elsewhere, but that would be unlikely given the expected application of touching file.
Cheers,
Matt