Abilitare JavaScript per vedere questo sito.

Genera un nome di file temporaneo per l'applicazione.

Sintassi

string temp_filename(const string &in prefix = '')

prefix

Prefisso per nome file (opzionale)

Risultato

Rende nome del file temporaneo generato.

Note

La funzione garantisce l'unicità del nome del file.

Esempio di utilizzo:

/* Rende valore del tipo C:/Users/<utente>/AppData/Local/Temp/rde/3.56.0-4/~xxxxxxxxxxxxxxx */
string filename1 = temp_filename();

 

/* Rende valore del tipo C:/Users/<utente>/AppData/Local/Temp/rde/3.56.0-4/prefix~xxxxxxxxxxxxxxx */
string filename2 = temp_filename("prefix");

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC