阅读背景:

boost Filesystem 文件系统

来源:互联网 
	boost::filesystem::path p("C:\Windows\System");//这里实际上不会访问文件系统的内容以及路径,仅仅是一个字符串而已
	TRACE("%s\n",p.root_name().string().c_str());//这里输出C:
	TRACE("%s\n",p.root_directory().string().c_str());//返回"\"
	TRACE("%s\n",p.root_path().string().c_str());//返回"C:\"
	TRACE("%s\n",p.relative_path().string().c_str());//Windows\System
	TRACE("%s\n",p.parent_path().string().c_str());//C:\Windows
	TRACE("%s\n",p.filename().string().c_str());//System	boost::filesystem::path p("C:\Windows\System



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: