Page 1 of 1

You cannot append to a file when using AsciiOutput and TextOutput, right? Wrong!

Posted: Wed Apr 05, 2023 8:02 am
by gtonkin
Cross-posting this topic here in case someone needs it.

TL:DR
Inserting the below function will allow you to append to a file when using AsciiOutput or TextOutput. Works across Prolog, Metadata, Data and Epliog as well as other TI processes:

Code: Select all

AsciiOutputOpen(<filename>,0|FILE_OPEN_APPEND|FILE_OPEN_SHARED);
Argument of 0 truncates.
Can be used in PAW, just ignore the error where PAW does not recognize the function.

Full article is here.

@Admins - could we leave this here for a while then move to Tips & Tricks once it has had some exposure please.

Re: You cannot append to a file when using AsciiOutput and TextOutput, right? Wrong!

Posted: Wed Apr 05, 2023 9:46 am
by MarenC
Hi,

you are sleeping with someone at IBM or you randomly put words into TI's and hope for the best? :D

Either way, keep up the great work!

Maren

Re: You cannot append to a file when using AsciiOutput and TextOutput, right? Wrong!

Posted: Wed Apr 05, 2023 9:50 am
by gtonkin
Let's go with the random words option...

Re: You cannot append to a file when using AsciiOutput and TextOutput, right? Wrong!

Posted: Wed Jul 10, 2024 10:46 pm
by ardi
Thanks for sharing George!

I wonder how many other golden TI Functions like this are there :)