It seems like you can already receive data and save it in a file.
It seems, when that is complete, you want to read another set of data and save that in a file.
Do you want to add it to the same file or start a new file.
How many times do you want to do that?
If you want to do it many times to separate files you will need to write code to generate different file names - probably using the date and time (use yyyymmddhhmm format for easy sorting of the files).
How does your program know when it has received all of one set of data?
I have achieved to the point where i can receive the data and save the file. The next thing is i want to do is read continuous set of data and save it in the same file by overwriting the previous data. this should keep happening continuously until i want to stop it.
Data time format sounds interesting i will try that. I haven't inputted anything in the program that it recognizes the data is collected. Surely, I do not know how to do that.
Why are you double posting.
It seems | have been wasting my time trying to help when you have already figured out the solution.
I am asking the Moderator to merge the Threads.
I don't remember double posting this not in this forum, the link you had on double posting didn't work and i couldn't see any thing. the page was an error.
I am sorry if you feel you have wasted your time by trying to help me and I m pretty sure I have not solved this problem yet.
If you wish to take about python programs - DO IT in a python forum, do not do it here. This forum deals with arduino programming. Just because the data came from the arduino make an issue for this forum.
Sorry, I just thought since I am using arduino and python together it would be better to ask here as many people will be doing the same. I did enquire in the python forum, but there was no responses and since there are a lot of good programmers here i thought i would seek their help. But since you dont want me asking questions on python programming here, i wont ask anymore.