It's 2 events and I explained the data format .
Essentially it loads a file and then for every item (every '|') it finds, it parses out the relevant data and adds it.
Substrings are parts of a string which are separated by a character, in this case | and ;.
Once we split it into strings of |, you then retrieve the text before the first ;, before the second ;, etc.