Script doesn't respect : puts(1,"\n")

new topic     » topic index » view thread      » older message » newer message

The code below (CGI) works fine except that it's as though the 
puts(1, "\n")  isn't there....as the browser prints the (10) 
items read from the file in five cols of two 'lines' each ??

  
fn=open("bcare_remit.txt","r")
   if fn > 0 then
  	line = gets(fn)
   else
   	puts(1,"Unable to open the disk file\n")
        abort(1)
   end if
for i = 1 to 10 do
	puts(1,line[1..50])
	puts (1,"\n") <---------- this seemed to cause line feeds
                                  with HTML "puts"...but not here   
        line = gets(fn)
end for

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu