Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
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