Question 1: A Python solution 

for line in open('01-cipher'):
    if '+---+----+' in line or line.isspace():
        # Skip line
    elif '|' in line:
        # Add char to mapping table
    else:
        # Remap chars and print