From: Simon Strandgaard Date: 2004-05-20T22:04:20+09:00 Subject: Files ugly clone I want to clone a filedescriptor, but no matter what I try I becomes ugly. The nice solution doesn't seems to work. f1 = File.open(__FILE__, 'r') f1.seek(5) p f1.pos # -> 5 f2 = f1.clone.reopen(f1) # this is nasty.. but works f2.seek(10) p f2.pos # -> 10 # check harmless p f1.pos # -> 5 how can I make a nice clone? -- Simon Strandgaard