def split_file(filename, size):
    with open(filename) as f:
        counter = 1
        while True:
            chunk = f.read(size)
            if not chunk:
                break
            with open('split_file'+str(counter)+'.txt', 'w') as f2:
                f2.write(chunk)
            counter += 1

split_file('transcripts.txt', 2048)
#toate fisierele care au rezultat din splituire se muta in folderul stiri
import os
import shutil
os.mkdir("data_en_split")
for file in os.listdir():
    if file.startswith("split_file"):
        shutil.move(file, "data_en_split")
