CreateFile method
Creates a new file in the file system and returns SFStream object
for it.
Syntax:
Set strm = object.CreateFile(name [,SF_Flags])
Parameters:
name - The name of the file to be created. Usually this is
full path name.
SF_Flags - the standard create/open
flags
Examples:
Set sf = Server.CreateObject("newObjects.utilctls.SFMain")
Set file = sf.CreateFile("C:\Directory\afile.ext")
' Write some text in the file
file.WriteText "Some text",1
Remarks:
This is a "fast way" to create a file. Files also can
be created by using the CreateStream method of SFStorage objects
attached to file system directories. Applications that work with a
few files only will usually prefer the SFMain.CreateFile method but
applications that need the benefits of the abstract storage-file
architecture will prefer the SFStorage's method.
Applies to: SFMain
object
See also: SFStorage.CreateStream
Supported on:
Windows 95/NT and later
Windows CE 3.0 and later
Pocket PC/Windows Mobile 2003 and later
Windows CE.NET 4 and later
|