I need to append text to a file, but not to the end of the file; one char before the end. This is a text file, which before appending has a \n that I need to overwrite (but keep all the previous contents). Basically, I need the C equivalent to fseek(handle,-1L,SEEK_END). How can I do this?
In reply to Advanced appending to file by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |