File splitter joiner tool in C