Adding a check to verify the line length was set and throwing an IOException if it was not