Importing irregular text file

You could try and use the R package readr