I can’t seem to get showSaveFileDialog() to append a .txt postfix to the filename. Even when I type it into the dialog box, it seems to strip it off. Without .txt, excel will not allow me to import the text file. What am I doing wrong??
Dim file As FolderItem
file = FolderItem.ShowSaveFileDialog(MyFileType.text, "PressureLog-.txt")
If file <> Nil Then
output = TextOutputStream.Create(file)
Thanks. I guess if I have more than one extension in the filetype.text then it doesn’t know what to append to the filename?
You really should only have one extension for types that you save.
[quote]Thanks. I guess if I have more than one extension in the filetype.text then it doesn’t know what to append to the filename?
[/quote]
Not a great idea.
In notepad, you will find it defaults to TXT as a file type.
You can select another filetype of ‘all files’ if you the user want to force an extension.
Without a filetyoe there is nothing to prevent your user adding .MOV or .PDF as the extension is there?