Link Details

Link 1113991 thumbnail
User 1090821 avatar

By iampro
Published: Feb 21 2014 / 17:13

Here is a 4 line JDBC program that reads a csv file and prints records in it. Here is why you will not need lengthy IO code to do this if you have Windows operating system.
  • 8
  • 0
  • 1381
  • 2028


Add your comment
User 166389 avatar

dxxvi replied ago:

0 votes Vote down Vote up Reply

At first, I thought there would be some magic here. Actually, it's a special odbc that will take care of reading the csv files. I think you can do the same in java, i.e. writing a special jdbc driver that reads csv files and then use it to read csv files anywhere using jdbc in 4 lines.

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)

Voters Against This Link (0)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java