Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag for India asked on

How to find how many records present in csv file using Java

How to find how many records present  in csv file using Java
The file will be present in S3 location . Is there any AWS services available for this ?
JavaAWS* Spring* Spring Framework

Avatar of undefined
Last Comment
CEHJ

8/22/2022 - Mon
CEHJ

How to find how many records present  in csv file using Java
Count the lines?
Sathish David Kumar N

ASKER
No in csv record will be same line also with comma separate
Sathish David Kumar N

ASKER
How to count the line ? S3 bucket file
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
CEHJ

I'm not familiar with S3 buckets, but unless they have removed line breaks (which are control characters) then i don't really see what the problem is.
Sathish David Kumar N

ASKER
Actually in one csv file user can upload upto 6lac record , If we do java it take 2 to 3 min .
if AWS have any services gave to find how many records available then it will easy to create chank for that
ASKER CERTIFIED SOLUTION
CEHJ

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
awking00

I still don't understand your question. Can you provide a few sample lines from a csv file and what you expect to determine?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
CEHJ

:)