Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

How to set file size while writing file #6

Open
dchouksey89 opened this issue Jan 25, 2018 · 0 comments
Open

How to set file size while writing file #6

dchouksey89 opened this issue Jan 25, 2018 · 0 comments

Comments

@dchouksey89
Copy link

dchouksey89 commented Jan 25, 2018

Hi,

I have file limit size 10MB how to set in this file limit size here. I want to write all records in multiple files which are lesser then 10MB

`
public static void write(String filePath, List<String[]> records) throws IOException{
Writer writer = Files.newBufferedWriter(Paths.get(filePath));
CSVWriter csvWriter = new CSVWriter(writer,
CSVWriter.DEFAULT_SEPARATOR,
CSVWriter.DEFAULT_QUOTE_CHARACTER,
CSVWriter.DEFAULT_ESCAPE_CHARACTER,
CSVWriter.DEFAULT_LINE_END);

	csvWriter.writeAll(records);
	csvWriter.close();

}

`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant