I would like to write file in JAVA
- Encoding : ANSI
- New line: CR LF
Example:
FileUtils.writeLines(new File(baseFolder.getAbsolutePath() + File.separatorChar + filename), data);
I am using Apache FileUtils.writeLines
but it is always in UTF-8
not ANSI
and new line as LF
and not CR LF
?
Server is Linux
not Windows