Skip to content
/ JCSV Public

Simple CSV Reader and Writer Classes for Java

License

Notifications You must be signed in to change notification settings

bamberjp/JCSV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java CSV (JCSV)

A Simple CSV Reader and Writer Classes for Java.

Usage

Reading a CSV File

try {
	File Source = new File("example.csv");
  	CSVReader Reader = new CSVReader(Source);
  	while ((Data = Reader.readRow()) != null) {
    	/* *** */
  	}
	Reader.close();
} catch (IOException e) {
	System.out.println(e);
}

Writing a CSV File

try {
	File Output = new File("example.csv");
  	CSVWriter Writer = new CSVWriter(Output);
  	String[] Data = new String[3];
  	   	 Data[0] = new String("Hello");
	  	 Data[1] = new String("World");
	  	 Data[2] = new String("Hello World");
  	Writer.writeRow(Data);
 	Writer.close();
} catch (IOException e) {
	System.out.println(e);
}

Support

Contact me directly via email for support at bamberjp@gmail.com. Feel free to share how you are using this code in your own projects.

About

Simple CSV Reader and Writer Classes for Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages