Add printing of solution to any file descriptor