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[Binary][OpenTemporaryFile] - open a temporary file for binary operations
Calling Sequence
OpenTemporaryFile(prefix)
Parameters
prefix
-
(optional) string prefix for the temporary file
Description
The OpenTemporaryFile() command creates and opens a temporary file. It returns a string that is the filename of the temporary file. The name of the file is of the form , where each is replaced with a random character.
The OpenTemporaryFile(prefix) command uses prefix as a template for the temporary file. The name of the file is of the form where each is replaced with a random character.
The current implementation of OpenTemporaryFile is not secure. Between generating the unique filename and creating the file, another process may be able to create a file with the same name. By doing so, the other process can read information from or write information into the file.
If no temporary file can be created, an exception is raised.
Examples
See Also
file_types, FileTools[Binary][Close], FileTools[Remove], FileTools[TemporaryFilename], FileTools[Text][Close], FileTools[Text][OpenTemporaryFile], IO_errors
Download Help Document