I am appending a string to a file after each 1 sec. I have recently found that the data rather one character is sometimes garbage or replaced. For example:
"This is a String" appears as "This is a Str&ng" or "This i%s a String"
So, my question here is that, does this correspond to file system corruption or what. Because if there would have any mistake in my code then I should have seen a long string of garbage value at the end or so. But that is not the case. I only see one character garbage value.
It follows the standard file write operation:
fHandle = fopen("A:\", "a");
strcpy(Buff, "This is a String");
fwrite(Buff, strlen(Buff), 1, fHandle);