Boost logo

Boost Users :

From: Server Levent Yilmaz (leventyilmaz_at_[hidden])
Date: 2007-01-30 20:38:54


On 1/30/07, Peng Yu <pengyu.ut_at_[hidden]> wrote:
> Hi,
>
> The following program gives some error. Can somebody let me know if it
> is possible to open filenames starting with "."?
>
> Thanks,
> Peng
>
> int main()
> {
> boost::filesystem::ofstream file(".abc");
> }
>

try

namespace bf = boost::filesystem;
bf::ofstream file( bf::path(".abc", bf::native) );

-- 
Server Levent Yilmaz
Mechanical Engineering @ PITT

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