OutputDirectory

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

Parameters

outputDirectoryPath

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

outFileName

the name of the file backing the out property when autoCreateOutFile is true; ignored otherwise

autoCreateOutFile

when true (default), create outFileName under outDir at construction time and back out with it. When false, no file is created and out is a no-op writer that discards everything written to it.


constructor(outDirName: String = "OutputDir", outFileName: String = "out.txt", autoCreateOutFile: Boolean = true)(source)

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

Parameters

outDirName

the name of the directory within the current launch directory, default "OutputDir"

outFileName

the name of the created text file related to property out, default "out.txt"

autoCreateOutFile

see the primary constructor