This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 53
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: 53
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
What FileReader expects
Printing a line of array fields
Passing FileReader an alternative to a file
SCJP5 Study Guide Q2. Page 611/622 -- Generics and Collections
Array of ten numbers