|
Boost Users : |
From: Jeff Dunlap (jeff_j_dunlap_at_[hidden])
Date: 2007-04-26 16:04:24
Luca Cappa <luca.cappa <at> sequoia.it> writes:
> path filepath;// this is a path to a file
> if (exists(filepath) && !is_directory(filepath))
> {
> ... the file is there
> }
Thank you. I can make it work with relative paths such as:
fs::path file_path( "test2/dir1/file01.txt" ); // works
fs::path file_path( "somefile.txt" ); // works
I just cannot figure out now is how to specify the drive and directory:
fs::path file_path( "C:/Logs/log.txt" ); // does not work
I need the ability to specify the explicit path since my paths will be provided
at runtime (from user input and INI files) therefore I cannot rely on paths
relative to the application.
Thanks in advance
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net