public static function readChar(string $message = '', bool $nl = false): string
    {
        $line = self::readln($message, $nl);

        return $line !== '' ? $line[0] : '';
    }
public static function readChar(string $message = '', bool $nl = false): string
    {
        $line = self::readln($message, $nl);

        return $line !== '' ? $line[0] : '';
    }
public static function readChar ( string $ message = '' , bool $ nl = false ) : string { $ line = self :: readln ( $ message , $ nl ) ; return $ line !== '' ? $ line [ 0 ] : '' ; }
Gets first character from file pointer
@param string $message
@param bool   $nl
@return string
Gets first character from file pointer