def split_into_chunks(filename, n_chunks = 4):
    """
    This function reads from the given file and
    divides them into chunks. It also provides padding if required.
    """
    f = open(filename, "r")
    file_data = f.read()
    length_of_file = len(file_data)
    print("The total characters in the file is : ",length_of_file)

    data_list = [] #The list will contain the chunks of data
    size_of_chunk = int(length_of_file/n_chunks) + 1
    print("Size of each chunk : ", size_of_chunk)

    for i in range(n_chunks):
        data_list.append(file_data[i * size_of_chunk : (i+1) * size_of_chunk])

    # print(len(data_list))
    if len(data_list[-1]) < size_of_chunk :     #To have all chunks of equal length. 
        data_list[-1] +=  "#" * (size_of_chunk - len(data_list[-1]))

    f.close()
    return data_list