How to write to a file with fixed line size ?
Posted on 2006-06-28
I am simply writing just one record, namely email address to a file.
The precondition is that I have to have the line fixed in size ( I mean the just one field whose value is sould be set to)
127 bytes + (CRLF) ?
How do set this and write to this file..
Currently I was simply writing to the file as: (I have the emails in an ArrayList - mUpdateSuccessEmailList)
public void writeFFFile(BufferedWriter lBuffWriter) throws IOException
StringBuffer buff = new StringBuffer();
Iterator iter = mUpdateSuccessEmailList.iterator();
buff.append(iter.next() + "\n");
Let me know...