Create Method

 Object: SoftArtisans.SAFile
 Syntax: Create ([in] Filename)
 Description: This method creates the specified file.

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

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

You can set the path by using either the SAFile (file specific) Path property, or by the FileUp (for all files) Path property.

Example:

	<%
	Set objFile = Server.CreateObject("SoftArtisans.SAFile")
	objFile.Path = "C:\Temp\"
	objFile.Create "DeleteMe.txt"
	objFile.Create "C:\Empty.txt"
	... %>

 

Previous Page Next Page