That is probably the easiest solution. The other option would be to add a category column to the CSV, but you would have to hand code the import at that point to look up the associated product ID. Your technique of separate files is probably just as good and takes less coding.