I am using SD Lib and want to over-write some data.
I am familiar with file.position() and file.seek() functions.
My TEST.txt file contains this data:
I want to replace 170 with 172. Below is what I have done so far,
SD.open("test.txt", FILE_WRITE); file.seek(12); file.print("172"); //file.write("172", 3); file.close();
But, there is no change in the file after running the code.
i could not figure out, where I am wrong.