FILE_WRITE in 'append' mode

Hi Team

Is it possible to write to a file with FILE_WRITE in an appending manner, i.e. write to a file that already has existing content, without overwriting said existing content?

I could not find a corresponding setting/option in the FILE_OPEN or the FILE_WRITE function blocks.

Thanks in advance!

Hello! If you familiar with File Write, please kindly read embedded help pages dedicated to other File Access functions. File Seek function will navigate you to the end of opened file, if properly configurated. After sequental call of File Open and File Seek you will be able to write file in append mode. BR

Hello Oleksandr

Thanks! Using FILE_SEEK was the hint I needed. With Position := 0 and Mode := 2 it works exactly as needed.

BR

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.