HTBasic Help
×
Menu
Index

File Specifier

 
A file specifier identifies a file. A file specifier consists of an optional drive letter, an optional path, a filename and an optional filename extension combined as follows:
 
d:\path\filename.ext
 
The drive letter specifies the disk drive, A, B, C, etc. If it is present, it must be followed by a colon, ":". The path is a series of one or more directory names, separated by the backslash character, "\", leading from the root directory to the file in question. A legal directory name follows the same rules as a legal filename.
 
For the FAT 16 file system, the filename consists of 1 to 8 characters. The extension consists of a period, "." followed by 1 to 3 characters. Case is ignored and when a new filename is specified all lowercase characters are converted to uppercase. Some characters are not legal in a filename. A period is only legal between the filename and the extension. Characters less than CHR$(32) are not legal. The characters in the following list are also illegal: "*+,/:;<=>?[\]|.
 
For the NTFS and FAT 32 file systems, the filename consists of 1 to 256 characters, including one or more extensions. Case is ignored, although when a new filename is specified, case is preserved for display in a directory listing. Some characters are not legal in a filename. Characters less than CHR$(31) are not legal. The characters in the following list are also illegal: "*/:<>?\|. Trailing spaces are ignored; elsewhere spaces are acceptable.