There are several places where you could get this error, so debugger is your best friend :).
For example :
- if line read from a file is empty,
line[0]
produces error - if line doesn't contain '=' symbol,
line.Split('=')[1]
produces error - if line contains less than three spaces,
line.Split(' ')[3]
produces error
Besides, I'd recommend to optimize your code a bit: use
TryParse()
method, create temp variables for parsed and splitted strings etc :)