Spec-Zone.ru › ColdFusion

getTempFile

Creates a temporary file in a directory whose name starts with (at most) the first three characters of prefix.

getTempFile(dir, prefix) → returns string

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: getTempDirectory fileWrite

    Argument Reference

    dir string
    Required

    prefix string
    Required

    Examples
    Sample code invoking the getTempFile function

    Create temp file in temp dir

    Returns path of file created

    getTempFile(getTempDirectory(),"testFile")

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/gettempfile

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API