def dataFromFile(file):
    """Loads the ``.txt`` file with all second-order tensors components.

    Parameters:
        file (`str`): ``txt`` file tabulated with tabular spaces as delimiter.
            The file is structured as a :math:`(n \\times 6)` array, where
            :math:`n` is the number of tensors and each row contains the
            vector form with the 6 components of a tensor in the following
            order :math:`t_{11}, t_{22}, t_{33}, t_{12}, t_{23}, t_{13}`.

    Returns:
        Two elements are returned; they are described below.

            - **sample** (`numpy.ndarray`): :math:`(n \\times 6)` array                that contains the same values than the ``.txt`` file.
            - **numTensors** (`int`): Number of tensors.

    Examples:
        >>> from jelinekstat.tools import dataFromFile
        >>> sample, numTensors = dataFromFile('inputDataExample.txt')
        >>> sample
        array([[ 1.02327,  1.02946,  0.94727, -0.01495, -0.03599, -0.05574],
               [ 1.02315,  1.01803,  0.95882, -0.00924, -0.02058, -0.03151],
               [ 1.02801,  1.03572,  0.93627, -0.03029, -0.03491, -0.06088],
               [ 1.02775,  1.00633,  0.96591, -0.01635, -0.04148, -0.02006],
               [ 1.02143,  1.01775,  0.96082, -0.02798, -0.04727, -0.02384],
               [ 1.01823,  1.01203,  0.96975, -0.01126, -0.02833, -0.03649],
               [ 1.01486,  1.02067,  0.96446, -0.01046, -0.01913, -0.03864],
               [ 1.04596,  1.01133,  0.94271, -0.0166 , -0.04711, -0.03636]])
        >>> numTensors
        8
    """
    import numpy as np
    sample = np.loadtxt(file)
    numTensors = int(np.shape(sample)[0])
    return sample, numTensors
