How do I split a string on an empty line using .Split()?
问题 For a class project I have to load a text file into a linked list. So far, I have been able to read from the file, but I am struggling to split it up into sections so that I can put it into the linked list. For example, I would like to split these items up at the empty lines: David Hunter No1 Admin John Smith No11 Sales Jane Appleby No5 Accounts I have tried String[] people = record.Split('\n'); but of course, this just splits it at every line. I have also tried: String[] people = record