I have a reference file on an SD card that holds around 1000 records that look like this:
982000421306246,0,B112,BW,0,! 982000421306248,0,D052,BW,0,! 982000421306249,0,B467,BW,0,! 982000421306251,0,A239,BW,0,! 982000421306252,0,A111,BW,0,! 982000421306253,0,A099,BW,0,!
The second column needs to chage from 0 to 1 as soon as that specific record has been read. From looking through the forum it seems so far that I can only do this by copying the entire file to a temporary file with the change added, deleting the original, and renaming the new file to the original file name.
The application is restrained by time, as the counting needs to happen fast so this is not an ideal solution. Is there a quicker / easier way? In my ignorance I did a tempFile.seek() and tempFile.write('1') but this is obviously not how it works.