Version 3 of Boost Filesystem Library provides function unique_path()
for generating a path name suitable for creating a temporary file or directory.
using namespace boost::filesystem;
path ph = temp_directory_path() / unique_path();
create_directories(ph);
More Related Contents:
- some problems about c++ try catch [closed]
- How do I link to a library with Code::Blocks?
- C++ Dynamic Shared Library on Linux
- How to get memory usage at runtime using C++?
- How can I create directory tree in C++/Linux?
- How to detect win32 process creation/termination in c++
- How do I programmatically get the version of a DLL or EXE file?
- How to read a value from the Windows registry
- Seeking and reading large files in a Linux C++ application
- Win32 programming hiding console window
- How to disassemble a binary executable in Linux to get the assembly code?
- Cancelling a thread using pthread_cancel : good practice or bad
- How to set up googleTest as a shared library on Linux
- What is the Windows equivalent to the capabilities defined in sys/select.h and termios.h
- How do I redirect output to a file with CreateProcess?
- Keyboard Input & the Win32 message loop
- Read process memory of a process does not return everything
- Cross Platform Floating Point Consistency
- C++ error: undefined reference to ‘clock_gettime’ and ‘clock_settime’
- “relocation R_X86_64_32S against ” linking Error
- How to enable visual styles without a manifest
- How large is a DWORD with 32- and 64-bit code?
- How to embed WebKit into my C/C++/Win32 application?
- Validate Authenticode signature on EXE – C++ without CAPICOM
- EnumDisplayDevices vs WMI Win32_DesktopMonitor, how to detect active monitors?
- How to implement readlink to find the path
- Breaking ReadFile() blocking – Named Pipe (Windows API)
- how to get process handle from process id?
- “APIENTRY _tWinMain” and “WINAPI WinMain” difference
- C++ Win32 keyboard events