Hi,
For datalogging, it would be cool to have in the script language "st.appendToFile(filename)" just like saveToFile, but not erasing the file each time it is open.
the procedure
procedure SaveToTextFile;
begin
st.create;
st.loadFromFile(fname.asString);
st.add(input.asString);
st.saveToFile(fname.asString);
st.free;
end;
would become
procedure SaveToTextFile;
begin
st.create;
st.setText(input.asString);
st.AppendToFile(fname.asString);
st.free;
end;
Cheers
Olivar
new script function : appendToFile
- oli_lab
- Member
- Posts: 1286
- Location: Brittany, France
- Contact:
new script function : appendToFile
http://oli-lab.org
Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces
follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social
Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces
follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social
- senso
- Site Admin
- Posts: 4427
- Location: France
- Contact:
will be implemented in the next major release.
Olivier Sens
www.brainmodular.com
www.brainmodular.com
