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
  • 910
  • 1984


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)

    Spring Integration
    Written by: Soby Chacko
    Featured Refcardz: Top Refcardz:
    1. Search Patterns
    2. Python
    3. C++
    4. Design Patterns
    5. OO JS
    1. PhoneGap
    2. Spring Integration
    3. Regex
    4. Git
    5. Java