split chapter file into separate files