Remove limitation of fixed line length for each line.
Change small buffer processing and state maching to track line endings to using getlinet to read entire line.