Class OutputUtils

java.lang.Object
javatro.utilities.outpututils.OutputUtils

public class OutputUtils extends Object
  • Constructor Details

    • OutputUtils

      public OutputUtils()
  • Method Details

    • pipeOutputToFile

      public static void pipeOutputToFile(String fileName, Screen renderable) throws IOException
      Pipes the output of the current screen to a file.
      Parameters:
      fileName - The name of the file to write to (e.g., "StartScreen.txt").
      renderable - The renderable screen object that has a render() method.
      Throws:
      IOException - If an I/O error occurs.