Portability | non-portable (requires POSIX) |
---|---|
Stability | provisional |
Maintainer | vs@foldr.org |
Safe Haskell | Trustworthy |
POSIX environment support
- mkstemp :: ByteString -> IO (RawFilePath, Handle)
Documentation
mkstemp :: ByteString -> IO (RawFilePath, Handle)Source
mkstemp
- make a unique filename and open it for
reading/writing (only safe on GHC & Hugs).
The returned RawFilePath
is the (possibly relative) path of
the created file, which is padded with 6 random characters.