Create Method

Object: SoftArtisans.SAFile
Syntax: Create([in] Filename As String)
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, FileUpuses 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.

Note: An SaFile object cannot be created when using FileUp in .NET. Therefore, use of this method is not recommended. Use .NET's built-in File I/O classes instead.
Examples:
ASP <%
Set file = Server.CreateObject("SoftArtisans.SAFile")
file.Path = "C:\Temp\"
file.Create "DeleteMe.txt"
file.Create "C:\Empty.txt" %>
ASP.NET N/A - Not recommended

Copyright © 2010 SoftArtisans, Inc. All rights reserved.