Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Overview of the FileTools[Text] Subpackage
Calling Sequence
FileTools[Text][command](arguments)
command(arguments)
Description
The FileTools[Text] subpackage is a collection of text file manipulation utilities. These commands allow the creation, reading, and writing of files using text format.
Text files represent data by converting the Maple representation into strings and then writing the strings to the file. As well, text files can contain formatting information in the form of newlines.
Text file formats vary with platform. The major incompatibility is that Windows, UNIX, and Macintosh all have different representations for newline characters. To accommodate this when reading a text file, Maple recognizes all three newline representations as a valid newline. When writing, Maple uses the native newline character to represent newlines. The FileTools[Text] commands recognize a newline character in a file and return it as "\\n", even for multibyte newline representations.
Each command in the FileTools[Text] subpackage 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[Text] subpackage is a module, it is also possible to use the form FileTools[Text]:-command to access a command from the package. For more information, see Module Members.
List of FileTools[Text] Commands
Close
CountCharacters
CountFloats
CountIntegers
CountLines
Open
OpenTemporaryFile
ReadCharacter
ReadFile
ReadFloat
ReadInteger
ReadLine
ReadNextFloat
ReadNextInteger
ReadString
WriteCharacter
WriteFloat
WriteInteger
WriteLine
WriteString
To display the help page for a particular FileTools[Text] command, see Getting Help with a Command in a Package.
See Also
FileTools, FileTools[Binary], help, module, symbol, trademark, UsingPackages, with
Download Help Document