Spiltter function split the sample.c program into 3 parts sample.dat.1
sample.dat.3 if its memory size is 300 and splited file wil hav 100 respectively . . And join function is opposite of it. .
Its in unix example
split -c <size> filename
for join
join file

You must post the code you have tried to write, and/or ask questions. Just stating the requirement is not sufficient for us to help you. If you need to you can write it in your own language then run it through a translater before posting here.