Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
tmpdir « File Directory « Ruby
Ruby
File Directory
tmpdir
1.
Dir.tmpdir provides the path to the temporary directory on the current system
2.
use Dir.tmpdir with File.join to create a platform-independent way of creating a temporary file: