Open file name starting with "." in boost::filesystem
30 Jan
2007
30 Jan
'07
8:30 p.m.
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"); } $ ./main-g.exe terminate called after throwing an instance of 'boost::filesystem::filesystem_error' what(): boost::filesystem::path: invalid name ".abc" in path: ".abc" Aborted
31 Jan
31 Jan
1:38 a.m.
New subject: Open file name starting with "." in boost::filesystem
On 1/30/07, Peng Yu
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
6496
Age (days ago)
6497
Last active (days ago)
1 comments
2 participants
participants (2)
-
Peng Yu
-
Server Levent Yilmaz