首页 > lang > temp 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
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

参见

File & Directory Functions