Extract data from CSV file

Vivek_Kumar

Vivek_Kumar

@vivek-kumar-c87TE2 Oct 26, 2024
Any one pls tell me how we can extract the exact data from the csv file in java

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Mar 28, 2015

    Vivek_Kumar
    Any one pls tell me how we can extract the exact data from the csv file in java
    Some more information about the number of tables in your CSV file, number of CSV files you want to process and the code that you've written so far would definitely help others provide better help to you.
  • Vivek_Kumar

    Vivek_Kumar

    @vivek-kumar-c87TE2 Mar 28, 2015

    well I need to know that can we apply 'where' clause to fetch the data from CSV file like what we do in MYSql.
  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Mar 28, 2015

    Vivek_Kumar
    well I need to know that can we apply 'where' clause to fetch the data from CSV file like what we do in MYSql.
    Share your code, please.
  • simplycoder

    simplycoder

    @simplycoder-NsBEdD Mar 28, 2015

    Please do share your code, but then if don't have slightest idea how to do it,
    Follow these steps.

    1)Write lines of code which will read the file.
    2)Extract contents and as it is.
    3) Use split function on ',' to separate the values.
    4) And have fun with them.
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Mar 29, 2015

    Vivek_Kumar
    well I need to know that can we apply 'where' clause to fetch the data from CSV file like what we do in MYSql.
    no, where clause applies on database where as csv is a file type, where you can only perform read or write operations or you can search certain text or string
  • Vivek_Kumar

    Vivek_Kumar

    @vivek-kumar-c87TE2 Mar 30, 2015

    Thanks.................