在Xcode中,当编译c++时,文件流在哪里输出文件
In Xcode, when compiling c++, where does the file stream output the file?
我知道在VS2012中,第四件事保存在与source.cpp文件相同的文件夹中,但我无法使用Xcode在mac中找到该文件。让我说清楚:
int main()
{
ofstream fout;
fout.open("MyFile.txt");
fout << "Where am I going?";
fout.close();
return 0;
}
所以如果"MyFile.txt"不存在,它被创建。
在您的家中(例如/Users/roshinichi)遵循此路径
./Library/Developer/Xcode/DerivedData/
位于应用程序的"派生数据"。你的文件在那里。一般来说,在mac上,你可以从shell
find . -name MyFile.txt
我希望这对你有帮助
相关文章:
- Linux 源代码中普通磁盘文件的"轮询"功能在哪里实现?
- 移植DXUT SDKMesh以导入OBJ文件,在哪里添加纹理坐标和索引
- 在哪里可以找到d3dcompiler_43.dll和相应的库文件?
- QT:在哪里可以找到 examples.pri 文件
- 我在哪里可以在Linux上找到QTquickCompiler生成的C 文件
- 我有一个启用了代理存根支持的 ATL 项目,在哪里可以找到 xdlldata.h 文件中所有方法的实现
- bazel 项目将其".so"文件存储在哪里?
- 知道分割故障在哪里比较两个文件
- OpenSSL dll文件存储在哪里
- 指定Visual Studio 2015在哪里寻找标题文件
- Qt Android:如果我写信给"./myfile.txt",我的文件在哪里?
- 在哪里以及如何定义成员变量?在头文件还是实现文件中?
- Xcode在哪里创建.txt文件到
- 库中的文件PCRE.H在哪里PCRE-8.37
- zxing-我可以在哪里找到这些文件?zxing-all-in-in-in.cpp和zxing-all-in-in.h
- 我在哪里可以在线找到C 库标头文件的源代码
- 在哪里可以下载适用于 Windows 的 GCC 4.3.2 二进制文件
- CLion IDE在哪里查找头文件
- 英特尔 OpenCL SDK - 头文件在哪里
- Rails 4 C++扩展名的文件在哪里