From: ts Date: 2002-08-11T23:03:55+09:00 Subject: Re: empty file returns nil not empty string? >>>>> "T" == =?iso-8859-1?Q?Thomas S=F8ndergaard?= writes: T> assert_equal("", f.read) The modification is perhaps Sat Mar 23 01:50:30 2002 Yukihiro Matsumoto * io.c (read_all): files on /proc filesystem with zero stat size, may have contents. 1.6.7 call stat(), if the size == 0 it return "" and force an eof 1.7.2 don't call stat() and it return nil when read.size == 0 and it's at eof Guy Decoux