Fully automated: input the filename and choose the output mode. Clean, modular code with clearly separated responsibilities. Place your tree text in a file (e.g., data.txt). You can generate this with ...