I am approached with a problem of organizing an input file into a dictionary and for my algorithm I have decided to firstly turn an input file into a list of each lines (str). Basically, given:

```
ABCDE
FGHIJ ABCDEFG
FGHIJ ABCDEFG LOLOA

```

It will turn into

```
[['ABCDE'], ['FGHIJ', 'ABCDEFG'], ['FGHIJ', 'ABCDEFG', 'LOLOA']]

```

I am unsure how I can start.