// ReadAllLines reads all lines from a file.
ReadAllLines reads all lines from a file.
// ReadAllLines reads all lines from a file .
func ReadAllLines(
	fileName string,
	newlineChar string,
) ([]string, error) {
	data, err := ioutil.ReadFile(fileName)
	if err != nil {
		return nil, err
	}
	return strings.Split(string(data), newlineChar), nil
}
func ReadAllLines ( fileName string , newlineChar string , ) ( [ ] string , error ) { data , err := ioutil . ReadFile ( fileName ) if err != nil { return nil , err } return strings . Split ( string ( data ) , newlineChar ) , nil }
ReadAllLines reads all lines from a file.
ReadAllLines reads all lines from a file .