I have an application that I need to store fixed length records into file on SD card and then transmit the files in batches to another application. The other application is not always available so I need to be able to handle sending some of the records from the file and later sending more. Once all files are sent then I can re-write the file back to zero bytes and start again.
Is there a way to get the number of lines of text in a file and also to set some sort of pointer where to get next records from? or better, to advance to the required line of text?