Difference between revisions of "Working with Files and File Systems in Recital"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) (→Miscellaneous File and File System Commands and Functions) |
Yvonnemilne (Talk | contribs) (→Miscellaneous File and File System Commands and Functions) |
||
Line 50: | Line 50: | ||
</pre> | </pre> | ||
− | * [[DIR|dir]] | + | * [[DIR|dir]] - display a directory of files |
− | * [[FILECOUNT()|filecount()]] | + | |
− | * [[CURDIR()|curdir()]] | + | <pre> |
− | * [[DEFAULT()|default()]] | + | dir [<skeleton as character>] |
− | * [[SET DEFAULT|set default]] | + | </pre> |
− | * [[PATH()|path()]] | + | |
− | * [[SET PATH|set path]] | + | * [[FILECOUNT()|filecount()]]- return number of files matching a pattern |
− | * [[DISKSPACE()|diskspace()]] | + | |
+ | <pre> | ||
+ | numeric = filecount(<skeleton as character>) | ||
+ | </pre> | ||
+ | |||
+ | * [[CURDIR()|curdir()]] - return name of the current directory | ||
+ | |||
+ | <pre> | ||
+ | character = curdir() | ||
+ | </pre> | ||
+ | |||
+ | * [[DEFAULT()|default()]]- return name of the current directory | ||
+ | |||
+ | <pre> | ||
+ | character = default() | ||
+ | </pre> | ||
+ | |||
+ | * [[SET DEFAULT|set default]] - set current directory | ||
+ | |||
+ | <pre> | ||
+ | set default to [<directory as character>] | ||
+ | </pre> | ||
+ | |||
+ | * [[PATH()|path()]] - return current Recital path setting | ||
+ | |||
+ | <pre> | ||
+ | character = path() | ||
+ | </pre> | ||
+ | |||
+ | * [[SET PATH|set path]] - set Recital path | ||
+ | |||
+ | <pre> | ||
+ | set path to [<directories as character>] | ||
+ | </pre> | ||
+ | |||
+ | * [[DISKSPACE()|diskspace()]] - return the available space on the current disk | ||
+ | |||
+ | <pre> | ||
+ | numeric = diskspace() | ||
+ | </pre> |
Revision as of 11:19, 25 January 2010
Contents
- 1 Working with Files and File Systems in Recital
- 1.1 Opening and Creating Text Files in Recital
- 1.2 Closing Text Files in Recital
- 1.3 Writing to a Text File using Recital
- 1.4 Reading From a Text File using Recital
- 1.5 Checking Whether a File Exists in Recital
- 1.6 Moving, Copying and Deleting Files with Recital
- 1.7 Accessing File Attributes in Recital
- 1.8 Miscellaneous File and File System Commands and Functions
Working with Files and File Systems in Recital
Opening and Creating Text Files in Recital
Closing Text Files in Recital
Writing to a Text File using Recital
Reading From a Text File using Recital
Checking Whether a File Exists in Recital
Moving, Copying and Deleting Files with Recital
Accessing File Attributes in Recital
Miscellaneous File and File System Commands and Functions
- adir() - return number of files matching a pattern and load filenmames and information into arrays
numeric = adir(<skeleton as character> [, <filenames as array> [, <filesizes as array> [, <creationdates as array> [, <creationtimes as array> [, <attributes as array>]]]]])
- dir - display a directory of files
dir [<skeleton as character>]
- filecount()- return number of files matching a pattern
numeric = filecount(<skeleton as character>)
- curdir() - return name of the current directory
character = curdir()
- default()- return name of the current directory
character = default()
- set default - set current directory
set default to [<directory as character>]
- path() - return current Recital path setting
character = path()
- set path - set Recital path
set path to [<directories as character>]
- diskspace() - return the available space on the current disk
numeric = diskspace()