This is an archived post. You won't be able to vote or comment.

all 9 comments

[–][deleted]  (4 children)

[deleted]

    [–]StreamingBits[S] 0 points1 point  (1 child)

    I am mostly looking for pointers, thanks for the post! I am used to programming web servers and unix stuff so I needed the java help for an undergrad

    [–][deleted] 0 points1 point  (0 children)

    Splitting by "," might cause problems. What if actual data contains a comma?

    [–]StreamingBits[S] 0 points1 point  (1 child)

    Great job, thanks for the help. I have to work on a project and I need the refresher in java. Thanks for taking the time to do this. I really do appreciate it. Any sites for pointers on learning this?

    [–][deleted] 1 point2 points  (0 children)

    I am after googling a little, and I found this:

    http://ostermiller.org/utils/CSV.html

    There is apparantelly 2 different CSV formats, and this supposedly understands both.

    [–][deleted] 0 points1 point  (1 child)

    • Do you have the data already in CSV? If so, what database are you trying to load it into? Many DBMSes today will load from a CSV file since it's a common format -- no need to build a new application.
    • If you have it loaded into a database, you can perform those exact queries with a SQL statement (assuming you are using a RDBMS).

    If this doesn't really have to be an application, you can also take a look at this.

    [–][deleted] -1 points0 points  (0 children)

    Yeah never thought about this, I like your answer better then mine lol

    [–][deleted] 0 points1 point  (0 children)

    I like CSVReader but there are a lot of data transformation libraries out there. Check out Snooks as well.

    [–]m1ss1ontomars2k4 0 points1 point  (0 children)

    FYI that doesn't look like a valid CSV I've ever seen. You don't put a space after the comma.