func SQLFileName(csvFileName string) string {
	var justFileName = filepath.Base(csvFileName)
	var extension = filepath.Ext(csvFileName)
	justFileName = justFileName[0 : len(justFileName)-len(extension)]
	sqlOutFile := "./.termdbms/SQL-" + justFileName + ".sql"
	return sqlOutFile
}
/*

csv2sql - conversion program to convert a csv file to sql format
to allow easy checking / validation, and for import into a SQLite3
database using the SQLite  '.read' command

author: simon rowe <simon@wiremoons.com>
license: open-source released under "New BSD License"

created: 16 Apr 2014 - initial outline code written
updated: 17 Apr 2014 - add flags and output file handling
updated: 27 Apr 2014 - wrap in double quotes instead of single
updated: 28 Apr 2014 - add flush io file buffer to fix SQL missing EOF
updated: 19 Jul 2014 - add more help text, tidy up comments and code
updated: 06 Aug 2014 - enabled the -k flag to alter the table header characters
updated: 28 Sep 2014 -  changed default output when run with no params, add -h
to display the help info and also still call flags.Usage()
updated: 09 Dec 2014 - minor tidy up and first 'release' provided on GitHub
updated: 27 Aug 2016 - table name and csv file help output minior changes. Minor cosmetic stuff. Version 1.1
package tuiutil
import (
	"bufio"
	"bytes"
	"encoding/csv"
	"fmt"
	"io"
	"os"
	"path/filepath"
	"strings"
)