home *** CD-ROM | disk | FTP | other *** search
- F- AskForFileName |askforfilename|
- C- Close |close|
- C- Dos |dos|
- C- Echo |echo|
- F- Exists |exists|
- F- FileOf |fileof|
- C- FileReadChars |filereadchars|
- C- FileReadLine |filereadline|
- F- FileSize |filesize|
- F- FileType |filetype|
- C- FileWriteChars |filewritechars|
- C- FileWriteLine |filewriteline|
- C- GetDiskInfo |getdiskinfo|
- C- GetFileInfo |getfileinfo|
- C- InsertDeviceList |insertdevicelist|
- C- InsertDirectoryList |insertdirectorylist|
- C- OpenFile |openfile|
- F- ParentOf |parentof|
- F- PathAndFile |pathandfile|
- F- PathOf |pathof|
- C- SetCurrentDirectory |setcurrentdirectory|
- C- SetFileBufferSize |setfilebuffersize|
- C- SetStandardOut |setstandardout|
- C- SetSystemRequesterTo |setsystemrequesterto|
- V- TheCurrentDirectory |thecurrentdirectory|
- V- TheOriginDirectory |theorigindirectory|
- [E]
-
- |askforfilename|
- WT {FilePath}=AskForFileName({InitialFilePath} [,{WindowTitle} [,{XCoor}, {YCoor}]])
- PL Brings up CanDo's file requester, allowing
- PL your application to ask user's for a file
- PL name which they can locate. The default
- PL file name must be specified, with an
- PL optional window title, and positioning.
- ED
-
- |close|
- WT Close {BufferName}
- PT Functionally the same as the
- BS Flush
- PT command.
- ED
-
- |dos|
- WT Dos {DOS command line} [,<STDOUT>]
- PL Executes the string specified in "DOS
- PL Command" as an AmigaDOS command. It works
- PL as though the command were typed from a CLI
- PL Window. The STDOUT flag tells the Dos
- PL command to use the current CLI or Shell for
- PL its output.
- ED
-
- |echo|
- WT Echo [{String} [,<NOLINE>]]
- PL This simply echo out some stuff to the
- PL console if there is one.
- PL
- PT SEE ALSO:
- BS SetStandardOut
- PT .
- ED
-
- |exists|
- WT {Logical}=Exists({FilePath})
- PL This returns TRUE if the specified filepath
- PL exists.
- ED
-
- |fileof|
- WT {FileName}=FileOf({FilePath})
- PL Extracts the filename from a complete file
- PL path specification. For example:
- PL Let MyFileName = FileOf("DF0:Tools/Test")
- PL MyFileName will equal "Test".
- PL
- PT SEE ALSO:
- BS PathOf
- PT .
- ED
-
- |filereadchars|
- WT FileReadChars {FileReadBufferName}, <VarName>, {Count} [,<HEX>]
- PL Reads in {Count} characters from the file
- PL associated with the buffer specified. The
- PL characters read in are put into the given
- PL variable. See next page for HEX info.
- PL
- NP filereadchars2
- PT SEE ALSO:
- BS FileReadLine
- PT and
- BS FileWriteChars
- PT .
- ED
-
- |filereadchars2|
- WT FileReadChars {FileReadBufferName}, <VarName>, {Count} [,<HEX>]
- PL If the HEX flag is given then the incomming
- PL characters are converted into a hex string.
- PT You can use the
- BS HexToChars
- PT ,
- BS CharsToHex
- PL ,
- BS HexToInteger
- PT and
- BS IntegerToHex
- PL functions to
- PL manipulate this string.
- PT SEE ALSO:
- BS FileWriteChars
- PT .
- PP filereadchars
- ED
-
- |filereadline|
- WT FileReadLine {FileReadBufferName}, <VarName>
- PL Reads a line from the file associated with
- PL the buffer specified. The line read in are
- PL put into the given variable.
- PL
- PT SEE ALSO:
- BS FileReadChars
- PT and
- BS FileWriteLine
- PT .
- ED
-
- |filesize|
- WT {Integer}=FileSize({FilePath})
- PL Returns the size, in bytes, of the
- PL specified file.
- PL
- PT SEE ALSO:
- BS GetFileInfo
- PT .
- ED
-
- |filetype|
- WT {String}=FileType({FilePath})
- PL This will try to figure out the file type
- PL of the specifed file. If the file type is
- PL not known then this function will return
- PL the string "Unknown".
- PL
- PT SEE ALSO:
- BS GetFileInfo
- PT .
- ED
-
- |filewritechars|
- WT FileWriteChars {FileWriteBufferName}, {String} [,{Count} [,<HEX>]
- PL Writes the string to the file associated
- PL with the buffer specified. If a count is
- PL given then only that many characters will
- PL be written. See next page for HEX info.
- PL
- NP filewritechars2
- PT SEE ALSO:
- BS FileWriteLine
- PT and
- BS FileReadChars
- PT .
- ED
-
- |filewritechars2|
- WT FileWriteChars {FileWriteBufferName}, {String} [,{Count} [,<HEX>]]
- PL If the HEX flag is given then the outgoing
- PL string is assummed to be a hex string and
- PL will be converted back into raw binary data.
- PL
- PT SEE ALSO:
- BS FileReadChars
- PT .
- PP filewritechars
- ED
-
- |filewriteline|
- WT FileWriteLine {FileWriteBufferName}, {String}
- PL Writes the given string to the file
- PL associated with the buffer specified.
- PL This command will write a newline character
- PL after writing the given string.
- PL
- PT SEE ALSO:
- BS FileWriteChars
- PT and
- BS FileReadLine
- PT .
- ED
-
- |getdiskinfo|
- WT GetDiskInfo {FilePath}, <NumberOfBlocksVar> [,<NumberUsedVar> [,<BytesPerBlockVar>]]
- PL This command will allow you to retrieve
- PL information about the specified disk.
- PL See the manual for a full description
- PL of this command.
- PL
- PT SEE ALSO:
- BS GetFileInfo
- PT .
- ED
-
- |getfileinfo|
- WT GetFileInfo {FilePath}, <SizeInBytesVar> [,<NumberOfBlocksVar> [,<AttributesVar> [,<DateVar> [,<TimeVar> [,<CommentVar>]]]]]
- PL This command will allow you to retrieve info
- PL about the specified file or directory. See
- PL the manual for a full description of this
- PL command.
- PT SEE ALSO:
- BS GetDiskInfo
- PT ,
- BS FileType
- PL and
- PT
- BS FileSize
- PT .
- ED
-
- |insertdevicelist|
- WT InsertDeviceList [<flags>]
- PL Types the list of Devices into the current
- PL document. See the manual for a full
- PL description of this command.
- ED
-
- |insertdirectorylist|
- WT InsertDirectoryList [<flags>]
- PL Types the current directory's list of files
- PL and/or directories into the current
- PL document. See the manual for a full
- PL description of this command.
- ED
-
- |openfile|
- WT OpenFile {FilePath}, {FileIOBufferName}, <IOflags>, <AccessFlags>
- PL Opens a file for input/output purposes.
- PL You can have as many files open as memory
- PL permits. See the manual for a full
- PL description of this command.
- PT SEE ALSO:
- BS FileWriteLine
- PT ,
- BS FileWriteChars
- PL ,
- PT
- BS FileReadLine
- PT ,
- BS FileReadChars
- PT and
- BS Close
- PT .
- ED
-
- |parentof|
- WT {PathName}=ParentOf({PathName})
- PL This returns the parent directory to the
- PL directory pathname given.
- PL
- PT SEE ALSO:
- BS PathOf
- PT .
- ED
-
- |pathandfile|
- WT {FilePath}=PathAndFile({PathName}, {FileName})
- PL This combines and returns the pathname and
- PL filename given.
- PL
- PT SEE ALSO:
- BS PathOf
- PT and
- BS FileOf
- PT .
- ED
-
- |pathof|
- WT {PathName}=PathOf({FilePath})
- PL Extracts the pathname from a complete file
- PL path specification. For example:
- PL Let MyPathName = PathOf("DF0:Tools/Test")
- PL MyFileName will equal "DF0:Tools/".
- PL
- PT SEE ALSO:
- BS FileOf
- PT and
- BS ParentOf
- PT .
- ED
-
- |setcurrentdirectory|
- WT SetCurrentDirectory {PathName}
- PL This set the decks current directory.
- PL See the manual for a full description
- PL of this command.
- ED
-
- |setfilebuffersize|
- WT SetFileBufferSize {KiloBytes}
- PL Sets the file input/output buffer size in
- PL kilobytes. The default is 4 Kilobytes.
- PL It only applies to buffers opened after
- PL this command is used.
- PL
- PT SEE ALSO:
- BS OpenFile
- PT .
- ED
-
- |setstandardout|
- WT SetStandardOut {FileWriteBufferName}
- PT Redirects the output of the
- BS Echo
- PL command
- PL to a file. The buffer must first be opened
- PT with the
- BS OpenFile
- PL command.
- ED
-
- |setsystemrequesterto|
- WT SetSystemRequesterTo <WINDOW | WORKBENCH | NOWHERE>
- PL This redirects dos autorequesters to the
- PL current WINDOW's screen, WORKBENCH (default)
- PL or to NOWHERE (no requesters at all). In
- PL the case of NOWHERE, all requesters act as
- PL if the user pressed cancel on them.
- ED
-
-
- |thecurrentdirectory|
- WT {PathName}=TheCurrentDirectory
- PL This returns the pathname of the deck's
- PL current directory.
- PL
- PT SEE ALSO:
- BS SetCurrentDirectory
- PL and
- PT
- BS TheOriginDirectory
- PT .
- ED
-
- |theorigindirectory|
- WT {PathName}=TheOriginDirectory
- PL This returns the pathname of the deck's
- PL original, startup, directory. See the
- PL manual for a full description of this
- PL system variable.
- PL
- PT SEE ALSO:
- BS TheCurrentDirectory
- PT .
- ED
-