tmpdir « File Directory « Ruby






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: