add some content to a file

Discussion in 'Ruby' started by Ruby Newbee, Feb 5, 2010.

  1. Ruby Newbee

    Ruby Newbee Guest

    Hello,

    I want to modify a file, begin from X line (X is line number),
    inserting some content into it.
    I tried scripting it with ruby but couldn't find a correct way.
    Can you help with it? Thanks.

    Jenn.
    Ruby Newbee, Feb 5, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tor Iver Wilhelmsen
    Replies:
    0
    Views:
    779
    Tor Iver Wilhelmsen
    Jun 30, 2003
  2. Roedy Green
    Replies:
    0
    Views:
    360
    Roedy Green
    Jul 5, 2003
  3. hazz
    Replies:
    6
    Views:
    49,419
    SkyUCHC
    Jun 9, 2010
  4. ginette
    Replies:
    0
    Views:
    138
    ginette
    Jun 4, 2004
  5. Bjoern Hoehrmann
    Replies:
    3
    Views:
    313
    Bart Van der Donck
    Jun 12, 2008
Loading...

Share This Page