I have a python question. I am new to python and to programing.
I wrote a program and ran it.
I have a list List_1. In List_1 I store values(x,y) tuple. Over time the list grows. I store 1200 of these (x,y) values in the list. As the list grows to 1200 I dump, using pickle, the first 200 values into a file on the hard drive and remove the first 200 (x,y)'s from the list. The list grows again to 1200 and again I dump the first 200 into the file on the hard drive and remove 200 from the list. After hours of this You would think that there would be more than 200 values in the file on the hard drive, but there is not.
while the program was running, I watched as the file size grew on the hard drive as it was being dumped to, thinking I was appending to the file. Obviously pickle is not appending to the dump file just because I opened the file with 'ab'. But if it were overwriting the file it would seem that the file size on disk would not grow while being dumped to.
CH_1 = 
if len(CH_1) == 1200:
list = open('pointlist', 'ab')
How do I read 200 out of CH_1 and append that data to a file on the hard drive for later use?
Do I need to create separate files every time 200 is dumped and then later on rebuild all the files?