Splits a file into two pieces with custom proportion