From: Michal Suchanek Date: 2009-02-04T09:33:44+09:00 Subject: [ruby-core:21817] Re: [Feature #908] Should be an easy way of reading N characters from am I/O stream On 04/02/2009, Michael Selig wrote: > > Re: seeking by character count - it would be nice, but I have no idea how it could be implemented efficiently! For UTF-8/UTF-16/SJIS/EUC-JP/BIG5 .. no. UTF-32 is dword aligned but you cannot tell what byte ordering it uses reliably. Bad thing. Seeks are probably not for text files or only for text files you have parsed already so you know where you are seeking. Thanks Michal