how to modify the secind line of file

Discussion in 'Ruby' started by vahag vardanyan, Mar 10, 2011.

  1. HI))
    I have a cycle, in wich I have to modify the second line of file in
    every iteration of cycle)

    Is there that kind of stuff in ruby??))

    how can I change the offset in file?? for example in C it is lseek())

    --
    Posted via http://www.ruby-forum.com/.
     
    vahag vardanyan, Mar 10, 2011
    #1
    1. Advertisements

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. Hugo
    Replies:
    10
    Views:
    1,588
    Matt Humphrey
    Oct 18, 2004
  2. Veeven
    Replies:
    2
    Views:
    581
    Guest
    Jan 12, 2004
  3. Jared Wiltshire
    Replies:
    8
    Views:
    605
    Ian Collins
    Aug 7, 2006
  4. kaushikshome
    Replies:
    4
    Views:
    1,019
    kaushikshome
    Sep 10, 2006
  5. Ramesh
    Replies:
    5
    Views:
    940
    Ramesh
    Oct 17, 2008
  6. scad
    Replies:
    23
    Views:
    1,447
    Alf P. Steinbach
    May 17, 2009
  7. Richard Schneeman
    Replies:
    16
    Views:
    780
    Daniel Bush
    Aug 27, 2008
  8. Replies:
    13
    Views:
    214
    Uri Guttman
    Feb 7, 2008
Loading...