func GetTotalRows(fileName string) int {
	file, _ := os.Open(fileName)
	defer file.Close()
	// Start reading from the file with a reader.
	inputReader := bufio.NewReader(file)
	lineNbr := 0
	for {
		_, error := inputReader.ReadString('\n')
		if error != nil {
			break
		}
		lineNbr++
	}
	return lineNbr
}
// GetTotalRows function to return total number of lines in a given file
GetTotalRows function to return total number of lines in a given file
// GetTotalRows function to return total number of lines in a given file
func GetTotalRows(fileName string) int {
	file, _ := os.Open(fileName)
	defer file.Close()
	inputReader := bufio.NewReader(file)
	lineNbr := 0
	for {
		_, error := inputReader.ReadString('\n')
		if error != nil {
			break
		}
		lineNbr++
	}
	return lineNbr
}
func GetTotalRows ( fileName string ) int { file , _ := os . Open ( fileName ) defer file . Close ( ) inputReader := bufio . NewReader ( file ) lineNbr := 0 for { _ , error := inputReader . ReadString ( '\n' ) if error != nil { break } lineNbr ++ } return lineNbr }
GetTotalRows function to return total number of lines in a given file
GetTotalRows function to return total number of lines in a given file
// Start reading from the file with a reader.