in reply to Re^2: wanting to make a file of strings usable by SQL
in thread wanting to make a file of strings usable by SQL

No, you just leave the line unterminated at the end of the loop and then check at the next iteration whether there was a previous line that needs terminating. The only time when that isn’t true is on the first line, which is a very simple condition. This leads to my trivial code below.

Makeshifts last the longest.

  • Comment on Re^3: wanting to make a file of strings usable by SQL