From: Bino Oetomo Date: 2007-04-21T14:14:07+09:00 Subject: Reading empty File Hi All I have an empty file : /mnt/ramdisk0/js01 I open it with --> f_send01 = File.open("/mnt/ramdisk0/js01","w+") and next line is --> l_send01 = f_send01.readline and rubby give error msg EOFError. Question : How to tell ruby to go to next command if only the file is not empty. well basically what i want to do is : -- open a file -- if not empty , output the content , and make the file empty regards -bino- -- Posted via http://www.ruby-forum.com/.