Tuesday, March 16, 2010

Function to open a CSV file in Java

    public void openCSV(String csvFileName){
        try    {
            String[] commands = {"cmd", "/c", "start", "\"DummyTitle\"",csvFileName};
            Runtime.getRuntime().exec(commands);
        }    catch(Exception e)    {
            e.printStackTrace();
        }
    } //END OF openCSV

1 comment:


  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training from India . Nowadays Java has tons of job opportunities on various vertical industry.

    ReplyDelete