Re: delete bytes?

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

Salix wrote:
> 
> I have a text file open and I want to write a few words after the 25th byte
> and delete the rest. What should I do?
> 
> }}}
<eucode>

> -- ... and now what?
> </eucode>
{{{

> 
> Regards,
> 
> Salix



 include file.e
 
 integer fn, fx
 fn = open("mytext.txt", "u")
 fx = seek(fn, 25) 
 puts(fn,"Aha!\n") 
 puts(fn,0)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu