File.this

Opens a file in the preferred directory for temporary files (as returned by g_get_tmp_dir()) and returns a GFile and GFileIOStream pointing to it. tmpl should be a string in the GLib file name encoding containing a sequence of six 'X' characters, and containing no directory components. If it is NULL, a default template is used. Unlike the other GFile constructors, this will return NULL if a temporary file could not be created. Since 2.32

  1. this(GFile* gFile)
  2. this(string arg)
  3. this(string arg, string cwd)
  4. this(string tmpl, FileIOStream iostream)
    class File
    this

Parameters

tmpl string

Template for the file name, as in g_file_open_tmp(), or NULL for a default template. [type filename][allow-none]

iostream FileIOStream

on return, a GFileIOStream for the created file. out

Throws

GException on failure. ConstructionException GTK+ fails to create the object.

Meta