Split file method

This commit implements the split file method

Signed-off-by: José Guilherme Vanz <guilherme.sft@gmai.com>