func NewFileWriter(location string) (io.Writer, error) {
	fs, err := os.Create(location)
	if err == os.ErrNotExist {
		fs.Write([]byte{})
		log.Printf("File:%s not exist, create one.")
	} else if err != nil {
		return nil, err
	}
	return bufio.NewWriter(fs), nil
}
// file may not exist.
// if file not exist, create one.
file may not exist.
if file not exist, create one.
// file may not exist . // if file not exist create one .
func NewFileWriter(location string) (io.Writer, error) {
	fs, err := os.Create(location)
	if err == os.ErrNotExist {
		fs.Write([]byte{})
		log.Printf("File:%s not exist, create one.")
	} else if err != nil {
		return nil, err
	}
	return bufio.NewWriter(fs), nil
}
func NewFileWriter ( location string ) ( io . Writer , error ) { fs , err := os . Create ( location ) if err == os . ErrNotExist { fs . Write ( [ ] byte { } ) log . Printf ( " " ) } else if err != nil { return nil , err } return bufio . NewWriter ( fs ) , nil }
file may not exist.
file may not exist .