Package javatro.utilities.csvutils
Class CSVUtils
java.lang.Object
javatro.utilities.csvutils.CSVUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearCSVFile(String filePath) Clears the content of a CSV file by overwriting it with an empty string.static voidwriteSampleToCSV(String filePath, String sampleString) Writes a sample string to a CSV file.
-
Constructor Details
-
CSVUtils
public CSVUtils()
-
-
Method Details
-
clearCSVFile
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
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.
-