home *** CD-ROM | disk | FTP | other *** search
- Routine : FNdir_read(name$(),dirname$,
- filename$,blk%)
- Library : FSysLib
- Purpose : Reads the specified directory
- entries into a string array.
- Source : User
- Author : Paul Hobbs
- Parameters:
- name$() = the string array to receive
- the entries
- dirname$ = the directory name to read
- filename$= the file name to read
- blk% = pointer to a 256 byte memory
- block
- Dependant Routines:
- FNmem_to_string(block%,offset%,term%)
- Global Variables:
- None
- Notes:
- Routine returns the number of entries
- read from the directory. Both the
- directory name and the filename may be
- wildcarded, i.e. a filename of "W*" would
- only read the entries begining with W. A
- null directory name means 'read the
- current directory'.
- Routine : FNcatinfo_read(object$)
- Library : FSysLib
- Purpose : Reads the catalogue info
- (attributes,load & exec
- addresses and length) for a
- given object.
- Source : User
- Author : Paul Hobbs
- Parameters:
- object$ = the object to obtain
- information on (may be
- wildcarded)
- Dependant Routines:
- FNpad_leading(string$,chars$,nr%)
- Global Variables:
- None
- Notes:
- The routine returns a string which can be
- used to determine whether an object
- exists, and if it does whether it is a
- file or a directory. The string is in the
- following format:
-
- 03 bytes a combination of LWRD
- (attributes)
- 01 byte space
- 08 bytes load address (hex)
- 01 byte space
- 08 bytes exec address (hex)
- 01 byte space
- 08 bytes length (hex)
-
- "Not Found" is the string returned if the
- object does not exist.
- Routine : FNfile_loadaddr(object$)
- Library : FSysLib
- Purpose : Reads the specified file load address
- Source : User
- Author : Paul Hobbs
- Parameters:
- object$ = the object to obtain the load
- address for.
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- The routine returns a the value of the load
- address in base 10. This may be displayed in
- hex with 'PRINT ~(FNfile_loadaddr())' for
- example. Check that the file exists first as
- otherwise an error will occur.
- Routine : FNfile_execaddr(object$)
- Library : FSysLib
- Purpose : Reads the specified file exec address
- Source : User
- Author : Paul Hobbs
- Parameters:
- object$ = the object to obtain the exec
- address for.
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- The routine returns a the value of the exec
- address in base 10. This may be displayed in
- hex with 'PRINT ~(FNfile_execaddr())' for
- example. Check that the file exists first as
- otherwise an error will occur.
- Routine : FNfile_length(object$)
- Library : FSysLib
- Purpose : Reads the specified file length
- Source : User
- Author : Paul Hobbs
- Parameters:
- object$ = the object to obtain the length of
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- The routine returns a the length of the
- specified object in base 10. This may be
- displayed in hex with 'PRINT
- ~(FNfile_length())' for example. Check that the
- file exists first as otherwise an error will
- occur.
- Routine : FNfile_exists(object$)
- Library : FSysLib
- Purpose : Checks that the specified object
- exists
- Source : User
- Author : Paul Hobbs
- Parameters:
- object$ = the object to check
- Dependant Routines:
- FNcatinfo_read(object$)
- FNpad_leading(string$,chars$,nr%)
- Global Variables:
- None
- Notes:
- The routine returns TRUE if the object exists,
- FALSE if it does not.
- Routine : FNfile_type(object$)
- Library : FSysLib
- Purpose : Returns the file type of the specified
- file
- Source : Archive November 1988 Page 40
- Author : Clive Payne
- Parameters:
- object$ = the object to retrieve the file type
- for
- Dependant Routines:
- None
- Global Variables:
- None
- Notes:
- An error will occur if the file does not exist,
- so check first with FNfile_exists().
- Routine : FNdemo_dir_read
- Library : FSysLib
- Purpose : A demo of reading information from a
- specified directory
- Source : User
- Author : Paul Hobbs
- Parameters:
- None
- Dependant Routines:
- FNcatinfo_read()
- FNpad_leading()
- Global Variables:
- None
- Notes:
- The root directory is read and displayed (file
- names and load & exec addresses etc.)
-
-