情報学部 | 菅沼ホーム | 目次 | 索引 |
data1 in file1 data2 in file1
data1 in file2
ruby test.rb file1 file2
printf "%s %s\n", ARGV[0], ARGV[1] while line = gets printf "%s %s\n", ARGV[0], ARGV[1] printf " %s", line end p gets p ARGF.filename
c:\temp>ruby test.rb file1 file2 file1 file2 file2 data1 in file1 file2 data2 in file1 data1 in file2 nil "file2"
情報学部 | 菅沼ホーム | 目次 | 索引 |