From: Singeo Date: 2008-05-27T20:37:37+09:00 Subject: Problem reading small files - stringio problem? Hi, I wonder if someone can take a quick look at this code and tell me where I'm going wrong. The small files (less than 20k?) that I read in this array are not appearing in the output file. I understand this is a problem to do with stringio but have not found a way to fix it. Thanks. letters=("A".."Z").to_a link_array = [] for index in (0...letters.length) dummy = letters[index] + ".html" link_array << dummy end open('sample.txt','w') for index in (0...link_array.length) guide=File.open(link_array[index], "r+") html = guide.read open('sample.txt','a') do |f| f.puts guide end end