Overview of the FileTools Package - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Input and Output : File Manipulation : FileTools : FileTools

Overview of the FileTools Package

Calling Sequence

FileTools[command](arguments)

command(arguments)

Description

• 

The FileTools package is a collection of file manipulation utilities. It contains two submodules.

  

- The Text module contains commands specific for manipulating text files.

  

- The Binary module contains commands for working with files of binary data.

  

The FileTools module also contains commands that can be applied to either type of file.

• 

Text files contain certain formatting concepts that do not apply to binary data (for example, lines and newline characters).  Also, the data in a text file is represented using characters.  In Maple, the internal representation is converted to a string and then written.  For more information, see the Text module help page.

• 

The data in a binary file is written to disk using a binary representation. Currently, this means that only hardware data types, integers, and floats can be written using the Binary module. For more information, see the Binary module help page.

• 

The FileTools[Compressed] subpackage contains commands for the creation, reading, and writing of compressed files. For more information, see FileTools[Compressed].

• 

Each command in the FileTools package can be accessed by using either the long form or the short form of the command name in the command calling sequence.

  

As the underlying implementation of the FileTools package is a module, it is also possible to use the form FileTools:-command to access a command from the package. For more information, see Module Members.

List of FileTools Package Commands

AbsolutePath

AtEndOfFile

Basename

Copy

Exists

Extension

Filename

Flush

IsDirectory

IsExecutable

IsLockable

IsOpen

IsReadable

IsWritable

JoinPath

ListDirectory

Lock

MakeDirectory

ModificationTime

ParentDirectory

Position

Remove

RemoveDirectory

Rename

Size

SplitPath

Status

TemporaryDirectory

TemporaryFilename

Unlock

 

 

List of FileTools[Text] Module Commands

Close

CountCharacters

CountFloats

CountIntegers

CountLines

Open

OpenTemporaryFile

ReadCharacter

ReadFile

ReadFloat

ReadInteger

ReadLine

ReadNextFloat

ReadNextInteger

ReadString

WriteCharacter

WriteFile

WriteFloat

WriteInteger

WriteLine

WriteString

 

 

 

List of FileTools[Binary] Module Commands

Close

CountBytes

Open

OpenTemporaryFile

Read

ReadFile

Write

WriteFile

List of FileTools[Compressed] Module Commands

Close

Contents

Extract

Open

Read

ReadFile

ReadWriteFile

Write

WriteFile

 

 

 

  

To display the help page for a particular FileTools command, see Getting Help with a Command in a Package.

See Also

examples/FileTools, FileTools[Binary], FileTools[Text], help, module, symbol, UsingPackages, with


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam