Skip to content

wniemiec-io-java/csv-file-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV File Manager

Read and write csv files.

Coverage status Java compatibility Maven Central release License


❇ Introduction

CSV File Manager performs operations with csv files simply and easily.

❓ How to use

  1. Add one of the options below to the pom.xml file:

Using Maven Central (recomended):

<dependency>
  <groupId>io.github.wniemiec-io-java</groupId>
  <artifactId>csv-file-manager</artifactId>
  <version>LATEST</version>
</dependency>

Using GitHub Packages:

<dependency>
  <groupId>wniemiec.io.java</groupId>
  <artifactId>csv-file-manager</artifactId>
  <version>LATEST</version>
</dependency>
  1. Run
$ mvn install
  1. Use it
[...]

import wniemiec.io.java.CsvFileManager;

[...]

List<String> firstLine = List.of("hello", "world");
List<String> secondLine = List.of("world", "hello");
File directory = new File(".");

CsvFileManager csvFileManager = new CsvFileManager(directory, "example-file.csv");
csvFileManager.writeLine(firstLine);
csvFileManager.writeLine(secondLine);

System.out.println( csvFileManager.readLines() );

[...]

📖 Documentation

Property Parameter type Return type Description Default parameter value
readLines separator: String List<List<String>> Reads exported CSV file and returns a Map with its content ","
writeLine line: List<String>, separator: String void Writes a content to a CSV file - , ","
writeLines lines: List<List<String>>, separator: String void Writes a content to a CSV file - , ","
delete void void Removes CSV file -
exists void boolean Checks whether the CSV file exists -

🚩 Changelog

Details about each version are documented in the releases section.

🤝 Contribute!

See the documentation on how you can contribute to the project here.

📁 Files

/

Name Type Description
dist Directory Released versions
docs Directory Documentation files
src Directory Source files