aspose 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CSVWriter not writing the first line in new file
 
Similar Threads
SCJP5 Study Guide Q2. Page 611/622 -- Generics and Collections
Array of ten numbers
Printing a line of array fields
What FileReader expects
Passing FileReader an alternative to a file