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
FileTools[Text][WriteFloat] - write a float to a file
Calling Sequence
WriteFloat(file, float, opt1, opt2, ... )
Parameters
file
-
file descriptor or filename
float
float to write to the file
opt1, opt2, ...
(optional) argument of the form, name or name=string where name is one of delim, leftdelim, or rightdelim
Description
The WriteFloat(file, float) command writes float to the file specified by file.
The WriteFloat function can place delimiters around float while writing. Without delimiters the characters of two consecutive calls to WriteFloat are continuous in the file and it is impossible to determine the correct location to separate the two floats. Delimiters can be added around the float by specifying, delim, leftdelim, or rightdelim.
The delim option adds delimiters on both sides of the float. The delimiter can be specified by passing delim=string. If a string is not specified then the delimiter is a single space.
The leftdelim option adds a delimiter before the float. The rightdelim option adds a delimiter after the float. The delimiter can be specified by passing or . If a string is not specified then the delimiter is a single space. The leftdelim and rightdelim options can be used together to specify asymmetric delimiters. If used in conjunction with delim, the delimiters specified by leftdelim or rightdelim take precedence.
If file is the name of an open file, the file descriptor is obtained automatically. If file is the name of a file that is not open, it is opened automatically. If file is an invalid descriptor, an error is raised.
Examples
See Also
file, FileTools[AtEndOfFile], FileTools[Remove], FileTools[Text], FileTools[Text][Close], FileTools[Text][Open], FileTools[Text][ReadCharacter], FileTools[Text][ReadFloat], FileTools[Text][ReadNextFloat], FileTools[Text][ReadString], IO_errors
Download Help Document