Ruby Tuesday wrote:
> Hi, I have these 2 files, one work and the other does not.
> 
> #!c:/apps/ruby/bin/ruby.exe
> print "Content-type: text/html \n\n\n"
> print  "1st line "
> print  "2nd line "
> print  "3rd line "
> 
> And this is the other one(DOES NOT WORK!)
> #!c:/apps/ruby/bin/ruby.exe
> print "Content-type: text/plain \n\n\n"
> print  "1st line "
> print  "2nd line "
> print  "3rd line "
> 
> The only difference is that the 2nd file has text/plain in the header
> instead of text/html. Please advise. Thanks
Well, both work...what error are you getting?, how are you using those?
my results:
Content-type: text/html


1st line 2nd line 3rd line
and:
Content-type: text/plain


1st line 2nd line 3rd line