- This video gives basic information on Using the FILETRUNC "Truncate File" instruction in the Do-more Designer software. It presents information that is commonly missed by users. This WILL NOT be a complete tutorial for the instruction but rather a supplement to the help file and customer experience.
** Software Version used in this video: Do-more Designer 2.2.1
Online Support Page: https://community.automationdirect.com/s/?utm_source=ph90YpMs2EQ&utm_medium=VideoTeamDescription
**Please check our website for our most up-to-date product pricing and availability.
This instruction will delete the contents of the specified file, from the location of the File pointer, to the end of the file. The location of the File pointer, in a currently opened file, is stored in the. FILEPOINTER field of the of the File handle structure. A typical use for this instruction, would to be first, open the file, using the FILEOPEN instruction. Use the File seek to point to the location where the truncation is to happen, and then use this instruction. Now, this instruction can be used in Task or Program but cannot be used in Subroutines or Interrupt service routines.