Posted By:
Barry_Dogger
Posted On:
Thursday, April 4, 2002 01:47 AM
Here's the code: public void saveFile(File file) { try { PrintWriter out = new PrintWriter( new FileOutputStream(file),true); Vector line = null; int i =0; while (i < data.size()) { line = (Vector)data.get(i); System.out.println("What is line ? " +line); i++; System.out.println("Before write "); out.println(line); System.out.println("After write "); } out.close(); } Here is the result of the line:System.out.println("What is line ? " +line);
More>>
Here's the code:
public void saveFile(File file)
{
try
{
PrintWriter out = new PrintWriter(
new FileOutputStream(file),true);
Vector line = null;
int i =0;
while (i
< data.size())
{
line = (Vector)data.get(i);
System.out.println("What is line ? " +line);
i++;
System.out.println("Before write ");
out.println(line);
System.out.println("After write ");
}
out.close();
}
Here is the result of the line:System.out.println("What is line ? " +line);
[Name , adres , Zip code, City , Phone , email]
I do not want to write the [ ] to my output file, because they appear in my table when i read the file again.
Thanks in advance.
regards,
Barry
<<Less