In our application we have connected the TM4C1231H6 controller with a microsd card on SPI interface.We are using FAT file system library file "ff.h ".
1)We create a file in sd card which keeps on saving data.
2) When data crosses a limit we would like to divide the file in two parts.
3)We would like to delete the upper half of data in the file and retain the lower half (i.e. the latest data).
Please suggest method to accomplish this task.