Home > lang > temp 
 en fr de es it nl pl pt pt_BR mk sq ca hu tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
Temp$
File name = Temp$( [ Name ] )
File name = Temp( [ Name ] )

Returns a path for a temporary file.

The path has the following form:

/tmp/gambas.[User id]/[Process id]/[Name].tmp

where [User id] is the user system identifier, [Process id] the system identifier of the current process, and [Name] the value of the Name argument.

If Name is not specified, then it is replaced by an integer number incremented each time this function is called. This way, you can have file names that are unique.

All files located in the /tmp/gambas.[User id]/[Process id] directory are automatically removed when the Gambas program ends.

Example

PRINT Temp$()

/tmp/gambas.501/14593/1.tmp

PRINT Temp$()

/tmp/gambas.501/14593/2.tmp

PRINT Temp$("version")

/tmp/gambas.501/14593/version.tmp

See also

File & Directory Functions