deduper / org.bradfordmiller.deduper.utils / FileUtils

FileUtils

class FileUtils

A utility library for file operations

Constructors

<init>

A utility library for file operations

FileUtils()

Companion Object Properties

logger

val logger: Logger!

Companion Object Functions

prepFile

creates a file named targetNamd with columns, and settings for the file extension and delimiter. deleteIfExists will determine if the file is deleted if it already exists before creating

fun prepFile(targetName: String, columns: Set<String>, extension: String, delimiter: String, deleteIfExists: Boolean): Unit

writeStringsToFile

writes a list of strings to a file with specified extension and delimiter

fun writeStringsToFile(strings: Array<String>, file: String, extension: String, delimiter: String): Unit

writes a list of strings lists to a file with specified extension and delimiter

fun writeStringsToFile(strings: Array<Array<String>>, file: String, extension: String, delimiter: String): Unit