Added cmd arg r for deciding on which row the file should be split