From: Siva Prakasam Date: 2006-11-28T18:09:51+09:00 Subject: Re: how to write file before EOF Paul Lutus wrote: > Siva Prakasam wrote: > >> >> how to write a file before its EOF >> by giving some position . > > You do understand that if you write to a file at an arbitrary position, > it > will overwrite was was there before, yes? A insertion, if that is what > you > actually have in mind, is a bit more complicated (but that can also be > done). > > Look at IO:seek. thanks for suggestion yes, i want to insert a file without overwriting its existing content. i looked for IO:SEEK_CUR and IO:SEEK_SET which will set the position.but it overwrites the existing content. how to do that? -- Posted via http://www.ruby-forum.com/.