Class CSVUtils

java.lang.Object
javatro.utilities.csvutils.CSVUtils

public class CSVUtils extends Object
  • Constructor Details

    • CSVUtils

      public CSVUtils()
  • Method Details

    • clearCSVFile

      public static void clearCSVFile(String filePath) throws IOException
      Clears the content of a CSV file by overwriting it with an empty string.
      Parameters:
      filePath - The path to the CSV file to be cleared.
      Throws:
      IOException - If an I/O error occurs.
    • writeSampleToCSV

      public static void writeSampleToCSV(String filePath, String sampleString) throws IOException
      Writes a sample string to a CSV file.
      Parameters:
      filePath - The path to the CSV file to write to.
      sampleString - The sample string to write to the CSV file.
      Throws:
      IOException - If an I/O error occurs.