hashcode-utils-kt / org.hildan.hashcode.utils.writer

Package org.hildan.hashcode.utils.writer

Exceptions

SolutionWritingException

Thrown if an exception occurs while writing to the output file.

class SolutionWritingException : Exception

Functions

writeHCOutputFile

Writes the given lines to a file at the given path. All necessary parent directories are created if they don't exist. The output file is overwritten if already existing.

fun writeHCOutputFile(path: Path, lines: Iterable<CharSequence>): Unit