Pages

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

No comments:

Post a Comment