On Sep 30, 2010, at 5:01 PM, Terry Ford wrote:
On Sep 30, 2010, at 1:31 PM, Norman Palardy wrote:
On Sep 30, 2010, at 2:02 PM, Greg O'Lone wrote:
I know that I can set a file's type in the GetOpenFolderItem and
GetSaveFolderItem methods, but for the life of me, I can't figure
out how to set the type of a file without showing the user a dialog.
My code looks like this:
Dim ds as string = "filename.sql"
Dim outputfile as folderitem = SpecialFolder.Desktop.child(ds)
dim OutputStream as TextOutputStream =
TextOutputStream.Create(outputfile)
OutputStream.WriteLine("--START--")
OutputStream.Close
set the properties of the outputfile AFTER writing all your data
OutputStreams are a strange beast themselves. I have found that
creating filetypes solves many problems but they can be created by
default without them. This is not documented very well.
Not at all
I gather you are suggesting to create the text file first and then
change its type properties. If that's the case, why isn't it
documented?
you mean like <http://docs.realsoftware.com/index.php/FolderItem.Type>
or <http://docs.realsoftware.com/index.php/FolderItem.MacType> ?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|