The common dialog control does not open or save the files, it just show a dialog in which the user can select the files.
If you want to modify and save the file selected by the user, after the call to the common dialog you need to open the file, for append/output, write what you need, and then close the file.
Here is an example:
<pre>Private Sub Command2_Click()
' Set filters.
CommonDialog1.Filter = "All Files (*.*)|*.*|Text Files (*.txt)|*.txt|Batch Files (*.bat)|*.bat"
' Specify default filter.
CommonDialog1.FilterIndex = 2
' Display the Open dialog box.
' get a free file number
file1 = FreeFile
'open the file
Open CommonDialog1.FileName For Append As file1
' Add some text to the file
Print #file1, "This is the new line"
The file name contains the full path.
You could also open 2 files, one for input, and other (in some different location) for output, and write in the second file what you read from the first one.
Hope this helps.