I am trying to write a file line by line using apache FileUtils.writeLines()
When I try to open the file (notepad++, editplus) it is with no line breaks.
(I am sending null to the encoding)
thanks.
FileUtils.writeLines(new File(INDICES_AND_WEIGHTS_FILENAME), indicesAndWeightsParams.indicesParams,";");
where indicesParams is a list
public List indicesParams;
Are you using code similar to this?
After this code,
newFile.txtdoes have newlines.Using
od -a newfile.txtgenerates (on Windows):which shows that newlines really do exist.