B
Bino Oetomo
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-
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-