File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes CSVWriter not writing the first line in new file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "CSVWriter not writing the first line in new file" Watch "CSVWriter not writing the first line in new file" New topic
Author

CSVWriter not writing the first line in new file

Padmanabh Sahasrabudhe
Ranch Hand

Joined: Mar 04, 2008
Posts: 50
I am having the following code which I expect to run on following csv file and print A,B,C in new file yourfile.csv. Somehow I see that I am entering a null record. Could anybody tell me whats wrong with following code?
ooordered.csv file
B,A,C
e,2,r
a,1,e
q,3,w

Code:

Padmanabh Sahasrabudhe
Ranch Hand

Joined: Mar 04, 2008
Posts: 50
resolved..writer.close() was missing.
 
Consider Paul's rocket mass heater.
 
subject: CSVWriter not writing the first line in new file
 
Similar Threads
SCJP5 Study Guide Q2. Page 611/622 -- Generics and Collections
Passing FileReader an alternative to a file
Printing a line of array fields
What FileReader expects
Array of ten numbers