creating_20temporary_20files_20and_20directories
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| creating_20temporary_20files_20and_20directories [2018/03/31 13:19] – external edit 127.0.0.1 | creating_20temporary_20files_20and_20directories [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| //by Jon Ripley, August 2007//\\ \\ The **FNtempfile** function creates and returns the name of a unique file in the current temporary directory. You should ensure that you delete this file when you no longer require it.\\ \\ | //by Jon Ripley, August 2007//\\ \\ The **FNtempfile** function creates and returns the name of a unique file in the current temporary directory. You should ensure that you delete this file when you no longer require it.\\ \\ | ||
| + | <code bb4w> | ||
| file$ = FNtempfile | file$ = FNtempfile | ||
| REM ... | REM ... | ||
| SYS " | SYS " | ||
| + | </ | ||
| \\ The **FNtempdir** function creates and returns the name of a unique directory in the current temporary directory. You should ensure that you delete this directory when you no longer require it.\\ \\ | \\ The **FNtempdir** function creates and returns the name of a unique directory in the current temporary directory. You should ensure that you delete this directory when you no longer require it.\\ \\ | ||
| + | <code bb4w> | ||
| dir$ = FNtempdir | dir$ = FNtempdir | ||
| REM ... | REM ... | ||
| SYS " | SYS " | ||
| + | </ | ||
| \\ The " | \\ The " | ||
| + | <code bb4w> | ||
| dir$ = FNtempdir | dir$ = FNtempdir | ||
| REM ... | REM ... | ||
| PROCremovedirectory(dir$) | PROCremovedirectory(dir$) | ||
| + | </ | ||
| \\ The code for the **FNtempfile**, | \\ The code for the **FNtempfile**, | ||
| + | <code bb4w> | ||
| DEF FNtempfile | DEF FNtempfile | ||
| LOCAL T% | LOCAL T% | ||
| Line 43: | Line 50: | ||
| SYS " | SYS " | ||
| ENDPROC | ENDPROC | ||
| + | </ | ||
| \\ The string " | \\ The string " | ||
creating_20temporary_20files_20and_20directories.1522502354.txt.gz · Last modified: 2024/01/05 00:18 (external edit)