• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to skip first row and start read second row in csv file using java?  RSS feed

 
Sharon Wong
Ranch Hand
Posts: 37
IBM DB2 Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Team,

Please kindly help me again regarding skip first row and start read data second row in CSV using java.

my csv file input like this:
POSTDATE SEQNUM FMRKTCD
9/30/2015 MIBIEJA2 ASX
10/01/2015 MIBIEJA2 ASX

i need skip first row (POSTDATE SEQNUM FMRKTCD) and start read 9/30/2015 and so on in csv file.
my output suppose is
9/30/2015 MIBIEJA2 ASX
10/01/2015 MIBIEJA2 ASX

the below is my coding:


Please kindly advice how to skip first line?
 
Paul Clapham
Sheriff
Posts: 22838
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your code, which reads all of the lines and does stuff with them:



Revised code to skip the first line and do stuff with the rest:



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!