OutputDirectory

class OutputDirectory(outputDirectoryPath: Path = KSLFileUtil.programLaunchDirectory, outFileName: String = "out.txt")

This class provides basic context for creating and writing output files. Files and directories created by instances of this class will be relative to the Path supplied at creation.

Parameters

outputDirectoryPath

the base output directory to use for writing text files relative to this OutputDirectory instance

outFileName

the name of the created text file related to property out

Constructors

Link copied to clipboard
constructor(outDirName: String = "OutputDir", outFileName: String = "out.txt")

Creates a OutputDirectory with the current program launch directory with the base directory

constructor(outputDirectoryPath: Path = KSLFileUtil.programLaunchDirectory, outFileName: String = "out.txt")

Properties

Link copied to clipboard
Link copied to clipboard
val dbDir: Path
Link copied to clipboard

The path to the default Excel directory, relative to this output directory

Link copied to clipboard

Can be used like System.out, but instead writes to a file found in the base output directory

Link copied to clipboard

The path to the default output directory

Link copied to clipboard

Functions

Link copied to clipboard
fun createFile(fileName: String): File

Makes a new PrintWriter within the base directory with the given file name

Link copied to clipboard

Makes a new PrintWriter within the base directory with the given file name

Link copied to clipboard

Makes a Path to the named subdirectory within the base directory

Link copied to clipboard
open override fun toString(): String