Re: delete bytes?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Greg Haberek wrote:
> 
> > I have a text file open and I want to write a few words after the 25th by=
> te and delete the rest. What should I do?
> 
> its only 25 bytes, why not do this?
> 
> ... 

Because in reality it is not 25 bytes but can be anything (including 837 252
938)
depending on the situation. I just tried to "strip down" the problem. 

My first thought was to finish the writting with puts(fn,EOF) but obviously
didn't
worked. :-] Following Hayden's and Jürgen's suggestions I try to find some
examples
in other languages on the web. (But frankly, I do not expect too much from this 
knowing my programming knowledge...)

More tips and advices are welcome!

Regards,

Salix

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu