File.WriteList -- Any way to append list contents to a File?

dpratte

New Member
Licensed User
Longtime User
I wish to continuously capture sensor data (comma separated strings) to a LIST and periodically write it out to a file and clear the list to keep heap size within limits.

The File.WriteList method caught my eye, but it overwrites any data in the file each time it is called, while at each write cycle, I wish to append new data to existing data.

I would appreciate any advice. Of course, I suppose I can iterate through the list and write each list member.
 

dpratte

New Member
Licensed User
Longtime User
Thanks David and Erel. David's RandomAccessFile suggestion caused me to explore that functionality for the first time, and it offers some quite interesting and useful capabilities (e.g. compression). But to get things going, I'll implement Erel's.
 
Upvote 0
Top