Re: how to append at the end of file ? (to DAN)

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

Dan, I agree: your way is clean, my was quick and dirty. It will only
work for open with attribute "a" or "w", and it will fail with attribute
"r".

If one uses close() without any use of open() then I found:

         close(n) leads to an error for n<0 or n=1,
         close(n) leads NOT to an error for n=0 or 1<n ,

at least on my machine.

Nave a nice day, Rolf

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

Search



Quick Links

User menu

Not signed in.

Misc Menu