add readlines(). closes #6511