[Numpy-discussion] loadtxt raises an exception on empty file
raise IOError('End-of-file reached before encountering data.') So it looks like it is not a bug although I am not sure why returning an empty array would not be valid. But then what are you going to do with the empty array? Vincent > >. numpy.fromfile() handles empty text files