Write to specified line number of file

Hi,

I want to read a file, and write to another file by randomize the lines.
I saw the method File.lineno= but it doesn’t seem to work. I just get
the same file written as the original, without the lines having been
randomized.

I suppose it should be simple, but am new to Ruby. Any help would be
great.

Thanks,

Asitya

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs