c - Rewrite lines on file -
i need rewrite char on file, or delete lines. there way achieve without rewriting whole file?
example: need change char "8" @ line 10 char "4".
pollo ciao fred 98/98/34 42ddw 4 10 1234567890 cristo ciao liby 98/98/34 fre42ddw 8 20 12345678901234567890
look @
int fseek (stream, offset, origin);
you can move specific offset , write symbol there. find offset of char replace still need read symbols before it.
Comments
Post a Comment