irb(main):020:0> f=File.open("/home/dongjichao/c/3_1.c")
=> #<File:/home/dongjichao/c/3_1.c>
irb(main):021:0> f.each do |line|
irb(main):022:1* puts line
irb(main):023:1> end
#include <stdlib.h>
int main(void){
printf("ddddd\n");
return EXIT_SUCCESS;
}
=> #<File:/home/dongjichao/c/3_1.c>
irb(main):024:0> f.close
=> nil
irb(main):025:0>