From: Bertram Scharpf Date: 2005-02-19T21:39:14+09:00 Subject: Re: IO#seek with SEEK_SET Hi, Am Samstag, 19. Feb 2005, 19:39:44 +0900 schrieb Martin DeMello: > Does calling IO#seek on a file with the SEEK_SET option internally do > something efficient if the position I want to seek to is ahead of the > current position? Or does it always do a rewind and then seek? That depends on what you operation system's `lseek' call does. I would be wondering if the hard disks read head moved the way you describe. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de