Class: SoftArtisans.SAFile

Method: Create ([in] Filename)

Description: This method creates the specified file.

If no path is specified ("file.ext"), the value of the Path property is used.

When a path is specified as part of filename given to SaveAs ("c:\uploads\file.ext"), the path must contain the complete path. Relative paths cannot be used.

If no Path was previously set, SA-FileUp will use the system-defined Temporary Path (which is returned by the WIN32 GetTempPath() routine). Typically, this is "C:\TEMP".

The Path may be set by either SAFile (file specific) Path property, or by the FileUp (for all files) Path property.

Example:

<%
set objFile = Server.CreateObject("SoftArtisans.SAFile")
objFile.Path "d:\tempdir"
objFile.Create "mytestfile.dat"
objFile.Create "e:\otherdir\journal.log"
... %>