This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CSVWriter not writing the first line in new file  RSS feed

 
Padmanabh Sahasrabudhe
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
resolved..writer.close() was missing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!