DartDemon 0 Newbie Poster

Hello there,

I'm trying to save incoming serial data which is stored in a string to a text file. I'm unsure how to keep the txt file open for saving the data until I tell it to stop. Also I'm not sure whether to use a timer that will save the data every tick or to have it save everytime the incoming serial data event fires. The data that is being saved to each line is label and numbers being the data. ie; Tension: 0000.0 LBS. I'm trying to keep the txt file from becoming huge so redundant data like all zeros wont be saved until it starts flucuating. Compare the data to orginal data to see if its greater than what it was before it starts saving it. Hope this makes sense somewhat, any questions please ask. Any input would be appreciated..

Thanks,
Tom

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.