Script doesn't respect : puts(1,"\n")
- Posted by John F Dutcher <John_Dutcher at urmc.rochester.edu> Aug 03, 2004
- 436 views
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