# File lib/kirbybase.rb, line 1117
    def line_to_rec(line, encrypted)
        line.chomp!
        line_length = line.length
        line = unencrypt_str(line) if encrypted
        line.strip!

        # Convert line to rec and return rec and line length.

        return line.split('|', -1), line_length
    end