Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / FileHelper Class / CanCreateFile Method / CanCreateFile(String,String,Boolean) Method
Full physical path of the file to attempt to create.
Text content to write to the file.
Whether to try to create directory structure if it does not exist?
In This Topic
    CanCreateFile(String,String,Boolean) Method
    In This Topic
    Tests for the ability to create (write) the specified file
    Syntax

    Parameters

    fileName
    Full physical path of the file to attempt to create.
    fileContent
    Text content to write to the file.
    createDirectoryStructure
    Whether to try to create directory structure if it does not exist?

    Return Value

    Exception that occurred during the test, or null if the test succeeded.
    Remarks
    The the given file path already exists, this method will attempt to overwrite it.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also