| 
 Purpose  | 
 Return the file-system name of an open file.  | 
| 
 Syntax  | 
 a$ = FILENAME$(filenum&)  | 
| 
 Remarks  | 
 a$ receives the name of the open file identified by the file number filenum&. This function is not valid with a file opened using OPEN HANDLE, COMM OPEN, TCP OPEN, or UDP OPEN.  | 
| 
 See also  | 
|
| 
 Example  | 
 OPEN "MYFILE.TXT" FOR INPUT AS #1 a$ = FILENAME$(1) CLOSE #1  |