I am using the following code
for (Enumeration enum = vecMainList.elements(); enum.hasMoreElements()
Opportunity opp = (Opportunity) enum.nextElement();
_fileLine = opp.getAttributeValue("NAME") + "\t" +
opp.getAttributeValue("COMMENTS") + "\n";
_byteLine = _fileLine.getBytes();
_fStream.write(_byteLine);
}
_fileLine = "End of List " + "\n\n";
_byteLine = _fileLine.getBytes();
_fStream.write(_byteLine);
_fStream.close();
response.sendRedirect(_absRptName);
Unfortunately the COMMENTS value has line feeds and carriage returns embedded in it which it inserts into my file, what i would like to do is to remove these so it will write to a file in a single line and not as recovered from the database