suggest a file name with selectOutput()

edited January 2016 in Programming Questions

Hi, I'd like to export a csv file. I use selectOutput() to let the user decide the place to save the file. But I'd like to suggest a file name in the textfield of the window launched by selectOutput(). How can I do this ? Thanks !

Answers

  • edited January 2016 Answer ✓

    there are a few lines with different params in the reference

    one line has a "File" in it.

    That's your way to go.

    say something like

    File fileMy = new File("empty.csv");
    

    and use fileMy as a parameter for selectOutput() iirc

  • Understood ! It works ! Thank you C

  • Answer ✓

    great!

Sign In or Register to comment.