write file before EOF

Siva Prakasam wrote:

  how to write a file before its EOF   by giving some position .

This is a Ruby question, not a Rails question. Try Googling for the answer, then try the Ruby newsgroup.

Always post to the most specific group possible, for the best answer.

Siva Prakasam wrote:

> how to write a file before its EOF > by giving some position .

This is a Ruby question, not a Rails question. Try Googling for the answer, then try the Ruby newsgroup.

Someone just asked your question there, under "Appending to file in arbitrary position".

They also wrote a complete question, with a code sample, so all you need to do now is watch that thread!