// ReadFile a size of byte from file
ReadFile a size of byte from file
// ReadFile a size of byte from file
func ReadFile(file string, size int) (string, error) {
	f, err := os.Open(file)
	if err != nil {
		return "", err
	}
	defer f.Close()
	r := bufio.NewReader(f)
	b, err := r.Peek(size)
	if err != nil {
		return "", err
	}
	return string(b), nil
}
func ReadFile ( file string , size int ) ( string , error ) { f , err := os . Open ( file ) if err != nil { return " " , err } defer f . Close ( ) r := bufio . NewReader ( f ) b , err := r . Peek ( size ) if err != nil { return " " , err } return string ( b ) , nil }
ReadFile a size of byte from file
ReadFile a size of byte from file