# File Open/Save dialogs in R tcltk

### The Open file dialog

The code above produces the following window:

### The Save file dialog

With this code, you get the following dialog box:

Now we will assume that the user pressed Cancel:

### Opening CSV files with the open file dialog

Here is how you can specify to the OpenFile dialog the type of files to look for:

Pressing the button gives the following OpenFile dialog, which knows which file extension to look for. In this case, only files with the extension .csv are displayed.

### Saving (or opening) files with more than one possible extension

Multiple possibilities for file extensions (e.g., .jpg and .jpeg) can be separated by a space as follows: