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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -