From: "Ryan C." Date: 2011-02-24T02:25:54+09:00 Subject: Re: Show text from text file in cgi script Justin, Thanks! I was looking at this from the wrong angle, obviously. Also, this is weird to me, but I'm new to this... I didn't need the #{}. Here's the code: #!/usr/local/bin/ruby # SCRIPT oliver_twist.cgi # CREATOR: Ryan Clark puts "Content-type: text/html" puts oliver = File.open("oliver_twist.txt").each { |line| puts line } #This line left intentionally blank puts < Oliver Twist HTML If I put the line #{oliver} between the body tags, it shows in the result. Here's the page: http://hills.ccsf.edu/~rclark4/oliver_twist.cgi Is that bizarre or normal? Can anyone explain? -- Posted via http://www.ruby-forum.com/.